2 writes to _app
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
203
_app
= builder.Build();
386
_app
= builder.Build();
42 references to _app
Aspire.Dashboard (42)
DashboardWebApplication.cs (42)
204
_dashboardOptionsMonitor =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
207
Services =
_app
.Services;
388
_dashboardOptionsMonitor =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
390
Services =
_app
.Services;
398
_app
.UseRequestLocalization(new RequestLocalizationOptions()
404
_app
.Lifetime.ApplicationStarted.Register(() =>
411
var corsOptions =
_app
.Services.GetRequiredService<IOptions<CorsOptions>>().Value;
458
var telemetryService =
_app
.Services.GetRequiredService<DashboardTelemetryService>();
474
_app
.Use(async (context, next) =>
493
_app
.UseCors();
500
_app
.UseForwardedHeaders();
503
_app
.UseMiddleware<ValidateTokenMiddleware>();
506
if (!
_app
.Environment.IsDevelopment())
508
_app
.UseExceptionHandler("/error");
511
_app
.UseHsts();
515
_app
.UseResponseCompression();
517
_app
.UseStatusCodePagesWithReExecute("/error/{0}");
521
_app
.UseHttpsRedirection();
524
_app
.UseStaticFiles(new StaticFileOptions()
539
_app
.UseAuthorization();
541
_app
.UseMiddleware<BrowserSecurityHeadersMiddleware>();
542
_app
.UseAntiforgery();
543
_app
.UseWebSockets();
548
_app
.Use(async (context, next) =>
563
_app
.MapRazorComponents<App>().AddInteractiveServerRenderMode();
566
_app
.MapTerminalWebSocket();
569
_app
.MapHttpOtlpApi(dashboardOptions.Otlp);
572
_app
.MapGrpcService<OtlpGrpcMetricsService>();
573
_app
.MapGrpcService<OtlpGrpcTraceService>();
574
_app
.MapGrpcService<OtlpGrpcLogsService>();
576
_app
.MapTelemetryApi(dashboardOptions);
577
_app
.MapDashboardApi(dashboardOptions);
578
_app
.MapDashboardHealthChecks();
583
var options =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue;
584
var suppressBrowserToken =
_app
.Configuration.GetBool(KnownConfigNames.DashboardSuppressBrowserTokenInOutput) ?? false;
594
var isContainer =
_app
.Configuration.GetBool("DOTNET_RUNNING_IN_CONTAINER") ?? false;
607
return
_app
.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>();
1002
_app
.Run();
1038
await ((IHost)
_app
).RunAsync(cancellationToken).ConfigureAwait(false);
1079
return
_app
.StartAsync(cancellationToken);
1085
return
_app
.StopAsync(cancellationToken);
1090
return
_app
.DisposeAsync();