2 writes to _app
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
272
_app
= builder.Build();
474
_app
= builder.Build();
42 references to _app
Aspire.Dashboard (42)
DashboardWebApplication.cs (42)
273
_dashboardOptionsMonitor =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
276
Services =
_app
.Services;
476
_dashboardOptionsMonitor =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
478
Services =
_app
.Services;
486
_app
.UseRequestLocalization(new RequestLocalizationOptions()
492
_app
.Lifetime.ApplicationStarted.Register(() =>
501
var corsOptions =
_app
.Services.GetRequiredService<IOptions<CorsOptions>>().Value;
551
_app
.Use(async (context, next) =>
570
_app
.UseCors();
577
_app
.UseForwardedHeaders();
580
_app
.UseMiddleware<ValidateTokenMiddleware>();
581
_app
.UseMiddleware<DashboardExperienceRedirectMiddleware>();
584
if (!
_app
.Environment.IsDevelopment())
586
_app
.UseExceptionHandler("/error");
589
_app
.UseHsts();
593
_app
.UseResponseCompression();
595
_app
.UseStatusCodePagesWithReExecute("/error/{0}");
599
_app
.UseHttpsRedirection();
602
_app
.UseStaticFiles(new StaticFileOptions()
617
_app
.UseAuthorization();
619
_app
.UseMiddleware<BrowserSecurityHeadersMiddleware>();
620
_app
.UseAntiforgery();
621
_app
.UseWebSockets();
626
_app
.Use(async (context, next) =>
641
_app
.MapRazorComponents<App>().AddInteractiveServerRenderMode(options =>
647
_app
.MapTerminalWebSocket();
650
_app
.MapHttpOtlpApi(dashboardOptions.Otlp);
653
_app
.MapGrpcService<OtlpGrpcMetricsService>();
654
_app
.MapGrpcService<OtlpGrpcTraceService>();
655
_app
.MapGrpcService<OtlpGrpcLogsService>();
657
_app
.MapTelemetryApi(dashboardOptions);
658
_app
.MapDashboardApi(dashboardOptions);
659
_app
.MapDashboardHealthChecks();
664
var options =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue;
665
var suppressBrowserToken =
_app
.Configuration.GetBool(KnownConfigNames.DashboardSuppressBrowserTokenInOutput) ?? false;
673
var isContainer =
_app
.Configuration.GetBool(KnownConfigNames.DotnetRunningInContainer) ?? false;
686
return
_app
.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>();
1136
_app
.WaitForShutdown();
1174
await
_app
.WaitForShutdownAsync(cancellationToken).ConfigureAwait(false);
1226
await
_app
.StartAsync(cancellationToken).ConfigureAwait(false);
1250
return
_app
.StopAsync(cancellationToken);
1255
return
_app
.DisposeAsync();