part #2
This commit is contained in:
@@ -11,6 +11,7 @@ using StellaOps.ExportCenter.WebService.Deprecation;
|
||||
using StellaOps.ExportCenter.WebService.EvidenceLocker;
|
||||
using StellaOps.ExportCenter.WebService.ExceptionReport;
|
||||
using StellaOps.ExportCenter.WebService.Incident;
|
||||
using StellaOps.ExportCenter.Core.Verification;
|
||||
using StellaOps.ExportCenter.WebService.Lineage;
|
||||
using StellaOps.ExportCenter.WebService.RiskBundle;
|
||||
using StellaOps.ExportCenter.WebService.SimulationExport;
|
||||
@@ -83,6 +84,9 @@ builder.Services.AddAuditBundleJobHandler();
|
||||
// Exception report services
|
||||
builder.Services.AddExceptionReportServices();
|
||||
|
||||
// Export verification services
|
||||
builder.Services.AddExportVerification();
|
||||
|
||||
// Lineage evidence pack services
|
||||
builder.Services.AddLineageExportServices();
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" />
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
{
|
||||
Logging: {
|
||||
LogLevel: {
|
||||
Default: Information,
|
||||
Microsoft.AspNetCore: Warning
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
Authority: {
|
||||
ResourceServer: {
|
||||
Authority: https://authority.localtest.me,
|
||||
Audiences: [
|
||||
api://export-center
|
||||
"Authority": {
|
||||
"ResourceServer": {
|
||||
"Authority": "https://authority.localtest.me",
|
||||
"Audiences": [
|
||||
"api://export-center"
|
||||
],
|
||||
RequiredTenants: [
|
||||
tenant-default
|
||||
"RequiredTenants": [
|
||||
"tenant-default"
|
||||
]
|
||||
}
|
||||
},
|
||||
AllowedHosts: *
|
||||
"AllowedHosts": "*"
|
||||
}
|
||||
|
||||
@@ -6,10 +6,13 @@ using StellaOps.Cryptography;
|
||||
using StellaOps.ExportCenter.Core.DevPortalOffline;
|
||||
using StellaOps.ExportCenter.Infrastructure.DevPortalOffline;
|
||||
using StellaOps.ExportCenter.RiskBundles;
|
||||
using StellaOps.Cryptography.DependencyInjection;
|
||||
using StellaOps.ExportCenter.Worker;
|
||||
using StellaOps.Worker.Health;
|
||||
|
||||
var builder = Host.CreateApplicationBuilder(args);
|
||||
var builder = WebApplication.CreateSlimBuilder(args);
|
||||
|
||||
builder.Services.AddStellaOpsCrypto();
|
||||
builder.Services.AddSingleton(TimeProvider.System);
|
||||
|
||||
builder.Services.Configure<DevPortalOfflineWorkerOptions>(builder.Configuration.GetSection("DevPortalOffline"));
|
||||
@@ -41,6 +44,8 @@ builder.Services.AddSingleton<RiskBundleJob>();
|
||||
|
||||
builder.Services.AddHostedService<Worker>();
|
||||
builder.Services.AddHostedService<RiskBundleWorker>();
|
||||
builder.Services.AddWorkerHealthChecks();
|
||||
|
||||
var host = builder.Build();
|
||||
host.Run();
|
||||
var app = builder.Build();
|
||||
app.MapWorkerHealthEndpoints();
|
||||
app.Run();
|
||||
|
||||
@@ -14,10 +14,14 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<LangVersion>preview</LangVersion>
|
||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
|
||||
@@ -40,7 +44,9 @@
|
||||
<ProjectReference Include="..\..\StellaOps.ExportCenter.RiskBundles\StellaOps.ExportCenter.RiskBundles.csproj"/>
|
||||
|
||||
<ProjectReference Include="../../../__Libraries/StellaOps.Cryptography/StellaOps.Cryptography.csproj"/>
|
||||
<ProjectReference Include="../../../__Libraries/StellaOps.Cryptography.DependencyInjection/StellaOps.Cryptography.DependencyInjection.csproj"/>
|
||||
|
||||
<ProjectReference Include="../../../../__Libraries/StellaOps.Worker.Health/StellaOps.Worker.Health.csproj"/>
|
||||
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user