2 writes to _app
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
204
_app
= builder.Build();
394
_app
= builder.Build();
42 references to _app
Aspire.Dashboard (42)
DashboardWebApplication.cs (42)
205
_dashboardOptionsMonitor =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
208
Services =
_app
.Services;
396
_dashboardOptionsMonitor =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
398
Services =
_app
.Services;
406
_app
.UseRequestLocalization(new RequestLocalizationOptions()
412
_app
.Lifetime.ApplicationStarted.Register(() =>
419
var corsOptions =
_app
.Services.GetRequiredService<IOptions<CorsOptions>>().Value;
466
var telemetryService =
_app
.Services.GetRequiredService<DashboardTelemetryService>();
482
_app
.Use(async (context, next) =>
501
_app
.UseCors();
508
_app
.UseForwardedHeaders();
511
_app
.UseMiddleware<ValidateTokenMiddleware>();
514
if (!
_app
.Environment.IsDevelopment())
516
_app
.UseExceptionHandler("/error");
519
_app
.UseHsts();
523
_app
.UseResponseCompression();
525
_app
.UseStatusCodePagesWithReExecute("/error/{0}");
529
_app
.UseHttpsRedirection();
532
_app
.UseStaticFiles(new StaticFileOptions()
547
_app
.UseAuthorization();
549
_app
.UseMiddleware<BrowserSecurityHeadersMiddleware>();
550
_app
.UseAntiforgery();
551
_app
.UseWebSockets();
556
_app
.Use(async (context, next) =>
571
_app
.MapRazorComponents<App>().AddInteractiveServerRenderMode();
574
_app
.MapTerminalWebSocket();
577
_app
.MapHttpOtlpApi(dashboardOptions.Otlp);
580
_app
.MapGrpcService<OtlpGrpcMetricsService>();
581
_app
.MapGrpcService<OtlpGrpcTraceService>();
582
_app
.MapGrpcService<OtlpGrpcLogsService>();
584
_app
.MapTelemetryApi(dashboardOptions);
585
_app
.MapDashboardApi(dashboardOptions);
586
_app
.MapDashboardHealthChecks();
591
var options =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue;
592
var suppressBrowserToken =
_app
.Configuration.GetBool(KnownConfigNames.DashboardSuppressBrowserTokenInOutput) ?? false;
602
var isContainer =
_app
.Configuration.GetBool("DOTNET_RUNNING_IN_CONTAINER") ?? false;
615
return
_app
.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>();
1010
_app
.Run();
1046
await ((IHost)
_app
).RunAsync(cancellationToken).ConfigureAwait(false);
1087
return
_app
.StartAsync(cancellationToken);
1093
return
_app
.StopAsync(cancellationToken);
1098
return
_app
.DisposeAsync();