2 writes to _app
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
292
_app
= builder.Build();
499
_app
= builder.Build();
43 references to _app
Aspire.Dashboard (43)
DashboardWebApplication.cs (43)
293
_dashboardOptionsMonitor =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
296
Services =
_app
.Services;
501
_dashboardOptionsMonitor =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
503
Services =
_app
.Services;
511
_app
.UseRequestLocalization(new RequestLocalizationOptions()
517
_app
.Lifetime.ApplicationStarted.Register(() =>
526
var corsOptions =
_app
.Services.GetRequiredService<IOptions<CorsOptions>>().Value;
577
_app
.Use(async (context, next) =>
598
_app
.UseCors();
605
_app
.UseForwardedHeaders();
608
_app
.UseMiddleware<ValidateTokenMiddleware>();
609
_app
.UseMiddleware<DashboardExperienceRedirectMiddleware>();
612
if (!
_app
.Environment.IsDevelopment())
614
_app
.UseExceptionHandler("/error");
617
_app
.UseHsts();
621
_app
.UseResponseCompression();
623
_app
.UseStatusCodePagesWithReExecute("/error/{0}");
627
_app
.UseHttpsRedirection();
630
_app
.UseAuthorization();
632
_app
.UseMiddleware<BrowserSecurityHeadersMiddleware>();
633
_app
.UseAntiforgery();
634
_app
.UseWebSockets();
639
_app
.Use(async (context, next) =>
654
var staticAssetsManifestPath = ResolveStaticAssetsManifestPath(
_app
.Environment.ContentRootPath, AppContext.BaseDirectory);
655
_app
.MapStaticAssets(staticAssetsManifestPath);
657
_app
.MapRazorComponents<App>()
665
_app
.MapTerminalWebSocket();
668
_app
.MapHttpOtlpApi(dashboardOptions.Otlp);
671
_app
.MapGrpcService<OtlpGrpcMetricsService>();
672
_app
.MapGrpcService<OtlpGrpcTraceService>();
673
_app
.MapGrpcService<OtlpGrpcLogsService>();
675
_app
.MapTelemetryApi(dashboardOptions);
676
_app
.MapDashboardApi(dashboardOptions);
677
_app
.MapDashboardHealthChecks();
700
var options =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue;
701
var suppressBrowserToken =
_app
.Configuration.GetBool(KnownConfigNames.DashboardSuppressBrowserTokenInOutput) ?? false;
709
var isContainer =
_app
.Configuration.GetBool(KnownConfigNames.DotnetRunningInContainer) ?? false;
722
return
_app
.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>();
1172
_app
.WaitForShutdown();
1210
await
_app
.WaitForShutdownAsync(cancellationToken).ConfigureAwait(false);
1262
await
_app
.StartAsync(cancellationToken).ConfigureAwait(false);
1286
return
_app
.StopAsync(cancellationToken);
1291
return
_app
.DisposeAsync();