2 writes to _app
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
223
_app
= builder.Build();
430
_app
= builder.Build();
42 references to _app
Aspire.Dashboard (42)
DashboardWebApplication.cs (42)
224
_dashboardOptionsMonitor =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
227
Services =
_app
.Services;
432
_dashboardOptionsMonitor =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
434
Services =
_app
.Services;
442
_app
.UseRequestLocalization(new RequestLocalizationOptions()
448
_app
.Lifetime.ApplicationStarted.Register(() =>
455
var corsOptions =
_app
.Services.GetRequiredService<IOptions<CorsOptions>>().Value;
502
var telemetryService =
_app
.Services.GetRequiredService<DashboardTelemetryService>();
518
_app
.Use(async (context, next) =>
537
_app
.UseCors();
544
_app
.UseForwardedHeaders();
547
_app
.UseMiddleware<ValidateTokenMiddleware>();
550
if (!
_app
.Environment.IsDevelopment())
552
_app
.UseExceptionHandler("/error");
555
_app
.UseHsts();
559
_app
.UseResponseCompression();
561
_app
.UseStatusCodePagesWithReExecute("/error/{0}");
565
_app
.UseHttpsRedirection();
568
_app
.UseStaticFiles(new StaticFileOptions()
583
_app
.UseAuthorization();
585
_app
.UseMiddleware<BrowserSecurityHeadersMiddleware>();
586
_app
.UseAntiforgery();
587
_app
.UseWebSockets();
592
_app
.Use(async (context, next) =>
607
_app
.MapRazorComponents<App>().AddInteractiveServerRenderMode();
610
_app
.MapTerminalWebSocket();
613
_app
.MapHttpOtlpApi(dashboardOptions.Otlp);
616
_app
.MapGrpcService<OtlpGrpcMetricsService>();
617
_app
.MapGrpcService<OtlpGrpcTraceService>();
618
_app
.MapGrpcService<OtlpGrpcLogsService>();
620
_app
.MapTelemetryApi(dashboardOptions);
621
_app
.MapDashboardApi(dashboardOptions);
622
_app
.MapDashboardHealthChecks();
627
var options =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue;
628
var suppressBrowserToken =
_app
.Configuration.GetBool(KnownConfigNames.DashboardSuppressBrowserTokenInOutput) ?? false;
638
var isContainer =
_app
.Configuration.GetBool("DOTNET_RUNNING_IN_CONTAINER") ?? false;
651
return
_app
.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>();
1099
_app
.Run();
1135
await ((IHost)
_app
).RunAsync(cancellationToken).ConfigureAwait(false);
1176
return
_app
.StartAsync(cancellationToken);
1182
return
_app
.StopAsync(cancellationToken);
1187
return
_app
.DisposeAsync();