2 writes to _app
Aspire.Dashboard (2)
DashboardWebApplication.cs (2)
176
_app
= builder.Build();
317
_app
= builder.Build();
36 references to _app
Aspire.Dashboard (36)
DashboardWebApplication.cs (36)
177
_dashboardOptionsMonitor =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
180
Services =
_app
.Services;
319
_dashboardOptionsMonitor =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>();
321
Services =
_app
.Services;
329
_app
.UseRequestLocalization(new RequestLocalizationOptions()
335
_app
.Lifetime.ApplicationStarted.Register(() =>
342
var corsOptions =
_app
.Services.GetRequiredService<IOptions<CorsOptions>>().Value;
378
var options =
_app
.Services.GetRequiredService<IOptionsMonitor<DashboardOptions>>().CurrentValue;
383
var isContainer =
_app
.Configuration.GetBool("DOTNET_RUNNING_IN_CONTAINER") ?? false;
390
var telemetryService =
_app
.Services.GetRequiredService<DashboardTelemetryService>();
406
_app
.Use(async (context, next) =>
425
_app
.UseCors();
428
_app
.UseMiddleware<ValidateTokenMiddleware>();
431
if (!
_app
.Environment.IsDevelopment())
433
_app
.UseExceptionHandler("/error");
436
_app
.UseHsts();
440
_app
.UseResponseCompression();
442
_app
.UseStatusCodePagesWithReExecute("/error/{0}");
446
_app
.UseHttpsRedirection();
449
_app
.UseStaticFiles(new StaticFileOptions()
467
_app
.UseForwardedHeaders();
470
_app
.UseAuthorization();
472
_app
.UseMiddleware<BrowserSecurityHeadersMiddleware>();
473
_app
.UseAntiforgery();
475
_app
.MapRazorComponents<App>().AddInteractiveServerRenderMode();
478
_app
.MapHttpOtlpApi(dashboardOptions.Otlp);
481
_app
.MapGrpcService<OtlpGrpcMetricsService>();
482
_app
.MapGrpcService<OtlpGrpcTraceService>();
483
_app
.MapGrpcService<OtlpGrpcLogsService>();
485
_app
.MapDashboardApi(dashboardOptions);
486
_app
.MapDashboardHealthChecks();
491
return
_app
.Services.GetRequiredService<ILoggerFactory>().CreateLogger<DashboardWebApplication>();
912
_app
.Run();
919
return
_app
.StartAsync(cancellationToken);
925
return
_app
.StopAsync(cancellationToken);
930
return
_app
.DisposeAsync();