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;
425
var options =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue;
430
var isContainer =
_app
.Configuration.GetBool("DOTNET_RUNNING_IN_CONTAINER") ?? false;
437
var telemetryService =
_app
.Services.GetRequiredService<DashboardTelemetryService>();
453
_app
.Use(async (context, next) =>
472
_app
.UseCors();
475
_app
.UseMiddleware<ValidateTokenMiddleware>();
478
if (!
_app
.Environment.IsDevelopment())
480
_app
.UseExceptionHandler("/error");
483
_app
.UseHsts();
487
_app
.UseResponseCompression();
489
_app
.UseStatusCodePagesWithReExecute("/error/{0}");
493
_app
.UseHttpsRedirection();
496
_app
.UseStaticFiles(new StaticFileOptions()
514
_app
.UseForwardedHeaders();
517
_app
.UseAuthorization();
519
_app
.UseMiddleware<BrowserSecurityHeadersMiddleware>();
520
_app
.UseAntiforgery();
522
_app
.MapRazorComponents<App>().AddInteractiveServerRenderMode();
525
_app
.MapHttpOtlpApi(dashboardOptions.Otlp);
528
_app
.MapGrpcService<OtlpGrpcMetricsService>();
529
_app
.MapGrpcService<OtlpGrpcTraceService>();
530
_app
.MapGrpcService<OtlpGrpcLogsService>();
532
_app
.MapDashboardMcp(dashboardOptions);
533
_app
.MapTelemetryApi(dashboardOptions);
534
_app
.MapDashboardApi(dashboardOptions);
535
_app
.MapDashboardHealthChecks();
540
return
_app
.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>();
944
_app
.Run();
951
return
_app
.StartAsync(cancellationToken);
957
return
_app
.StopAsync(cancellationToken);
962
return
_app
.DisposeAsync();