2 writes to _app
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
183
_app
= builder.Build();
341
_app
= builder.Build();
38 references to _app
Aspire.Dashboard (38)
DashboardWebApplication.cs (38)
184
_dashboardOptionsMonitor =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
187
Services =
_app
.Services;
343
_dashboardOptionsMonitor =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
345
Services =
_app
.Services;
353
_app
.UseRequestLocalization(new RequestLocalizationOptions()
359
_app
.Lifetime.ApplicationStarted.Register(() =>
366
var corsOptions =
_app
.Services.GetRequiredService<IOptions<CorsOptions>>().Value;
424
var options =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue;
429
var isContainer =
_app
.Configuration.GetBool("DOTNET_RUNNING_IN_CONTAINER") ?? false;
436
var telemetryService =
_app
.Services.GetRequiredService<DashboardTelemetryService>();
452
_app
.Use(async (context, next) =>
471
_app
.UseCors();
474
_app
.UseMiddleware<ValidateTokenMiddleware>();
477
if (!
_app
.Environment.IsDevelopment())
479
_app
.UseExceptionHandler("/error");
482
_app
.UseHsts();
486
_app
.UseResponseCompression();
488
_app
.UseStatusCodePagesWithReExecute("/error/{0}");
492
_app
.UseHttpsRedirection();
495
_app
.UseStaticFiles(new StaticFileOptions()
513
_app
.UseForwardedHeaders();
516
_app
.UseAuthorization();
518
_app
.UseMiddleware<BrowserSecurityHeadersMiddleware>();
519
_app
.UseAntiforgery();
521
_app
.MapRazorComponents<App>().AddInteractiveServerRenderMode();
524
_app
.MapHttpOtlpApi(dashboardOptions.Otlp);
527
_app
.MapGrpcService<OtlpGrpcMetricsService>();
528
_app
.MapGrpcService<OtlpGrpcTraceService>();
529
_app
.MapGrpcService<OtlpGrpcLogsService>();
531
_app
.MapDashboardMcp(dashboardOptions);
532
_app
.MapTelemetryApi(dashboardOptions);
533
_app
.MapDashboardApi(dashboardOptions);
534
_app
.MapDashboardHealthChecks();
539
return
_app
.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>();
943
_app
.Run();
950
return
_app
.StartAsync(cancellationToken);
956
return
_app
.StopAsync(cancellationToken);
961
return
_app
.DisposeAsync();