stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -30,6 +30,7 @@ using System.Linq;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
|
||||
builder.Services.AddRouting(options => options.LowercaseUrls = true);
|
||||
// TimeProvider.System is registered here for deterministic time support
|
||||
builder.Services.TryAddSingleton(TimeProvider.System);
|
||||
@@ -205,8 +206,11 @@ builder.Services.TryAddStellaRouter(
|
||||
version: typeof(Program).Assembly.GetName().Version?.ToString() ?? "1.0.0",
|
||||
routerOptions: routerOptions);
|
||||
|
||||
builder.TryAddStellaOpsLocalBinding("scheduler");
|
||||
var app = builder.Build();
|
||||
app.LogStellaOpsLocalHostname("scheduler");
|
||||
|
||||
app.UseStellaOpsCors();
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
app.UseMiddleware<SchedulerTelemetryMiddleware>();
|
||||
|
||||
Reference in New Issue
Block a user