2 writes to _app
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
164_app = builder.Build(); 270_app = builder.Build();
29 references to _app
Aspire.Dashboard (29)
DashboardWebApplication.cs (29)
165_dashboardOptionsMonitor = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>(); 168Services = _app.Services; 272_dashboardOptionsMonitor = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>(); 274Services = _app.Services; 282_app.UseRequestLocalization(new RequestLocalizationOptions() 288_app.Lifetime.ApplicationStarted.Register(() => 295var corsOptions = _app.Services.GetRequiredService<IOptions<CorsOptions>>().Value; 331var options = _app.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue; 336var isContainer = _app.Configuration.GetBool("DOTNET_RUNNING_IN_CONTAINER") ?? false; 345_app.Use(async (context, next) => 364_app.UseCors(); 367_app.UseMiddleware<ValidateTokenMiddleware>(); 370if (!_app.Environment.IsDevelopment()) 372_app.UseExceptionHandler("/error"); 375_app.UseHsts(); 379_app.UseResponseCompression(); 381_app.UseStatusCodePagesWithReExecute("/error/{0}"); 385_app.UseHttpsRedirection(); 388_app.UseStaticFiles(new StaticFileOptions() 403_app.UseAuthorization(); 405_app.UseMiddleware<BrowserSecurityHeadersMiddleware>(); 406_app.UseAntiforgery(); 408_app.MapRazorComponents<App>().AddInteractiveServerRenderMode(); 411_app.MapHttpOtlpApi(dashboardOptions.Otlp); 414_app.MapGrpcService<OtlpGrpcMetricsService>(); 415_app.MapGrpcService<OtlpGrpcTraceService>(); 416_app.MapGrpcService<OtlpGrpcLogsService>(); 418_app.MapDashboardApi(dashboardOptions); 423return _app.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>();