stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -125,6 +125,7 @@ builder.Services.AddOptions<ToolLatticeOptions>()
|
||||
builder.Services.AddSingleton(sp => sp.GetRequiredService<IOptions<PolicyGatewayOptions>>().Value);
|
||||
builder.Services.AddSingleton(TimeProvider.System);
|
||||
builder.Services.AddSystemGuidProvider();
|
||||
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
|
||||
builder.Services.AddRouting(options => options.LowercaseUrls = true);
|
||||
builder.Services.AddProblemDetails();
|
||||
builder.Services.AddHealthChecks();
|
||||
@@ -254,7 +255,9 @@ builder.Services.AddHttpClient<IPolicyEngineClient, PolicyEngineClient>((service
|
||||
})
|
||||
.AddPolicyHandler(static (provider, _) => CreatePolicyEngineRetryPolicy(provider));
|
||||
|
||||
builder.TryAddStellaOpsLocalBinding("policy-gateway");
|
||||
var app = builder.Build();
|
||||
app.LogStellaOpsLocalHostname("policy-gateway");
|
||||
|
||||
app.UseExceptionHandler(static appBuilder => appBuilder.Run(async context =>
|
||||
{
|
||||
@@ -264,6 +267,7 @@ app.UseExceptionHandler(static appBuilder => appBuilder.Run(async context =>
|
||||
|
||||
app.UseStatusCodePages();
|
||||
|
||||
app.UseStellaOpsCors();
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user