1 write to _innerBuilder
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
133_innerBuilder = new HostApplicationBuilder(innerBuilderOptions);
62 references to _innerBuilder
Aspire.Hosting (62)
DistributedApplicationBuilder.cs (62)
55public IHostEnvironment Environment => _innerBuilder.Environment; 58public ConfigurationManager Configuration => _innerBuilder.Configuration; 61public IServiceCollection Services => _innerBuilder.Services; 135_innerBuilder.Services.AddSingleton(TimeProvider.System); 137_innerBuilder.Logging.AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Warning); 138_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel", LogLevel.Error); 139_innerBuilder.Logging.AddFilter("Aspire.Hosting.Dashboard", LogLevel.Error); 140_innerBuilder.Logging.AddFilter("Grpc.AspNetCore.Server.ServerCallHandler", LogLevel.Error); 144_innerBuilder.Logging.AddFilter("Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService", LogLevel.None); 148_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer", LogLevel.Warning); 151_innerBuilder.Logging.AddConfiguration(_innerBuilder.Configuration.GetSection("Logging")); 153AppHostDirectory = options.ProjectDirectory ?? _innerBuilder.Environment.ContentRootPath; 154var appHostName = options.ProjectName ?? _innerBuilder.Environment.ApplicationName; 159_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 166_executionContextOptions = _innerBuilder.Configuration["Publishing:Publisher"] switch 195_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 201_innerBuilder.Services.AddSingleton(sp => new DistributedApplicationModel(Resources)); 202_innerBuilder.Services.AddHostedService<DistributedApplicationLifecycle>(); 203_innerBuilder.Services.AddHostedService<DistributedApplicationRunner>(); 204_innerBuilder.Services.AddSingleton(options); 205_innerBuilder.Services.AddSingleton<ResourceNotificationService>(); 206_innerBuilder.Services.AddSingleton<ResourceLoggerService>(); 207_innerBuilder.Services.AddSingleton<IDistributedApplicationEventing>(Eventing); 208_innerBuilder.Services.AddHealthChecks(); 217if (!IsDashboardUnsecured(_innerBuilder.Configuration)) 221_innerBuilder.Configuration.AddInMemoryCollection( 229if (_innerBuilder.Configuration[KnownConfigNames.DashboardFrontendBrowserToken] is not { Length: > 0 } browserToken) 235_innerBuilder.Configuration.AddInMemoryCollection( 243if (_innerBuilder.Configuration[KnownConfigNames.DashboardResourceServiceClientApiKey] is not { Length: > 0 } apiKey) 249_innerBuilder.Configuration.AddInMemoryCollection( 260_innerBuilder.Configuration.AddInMemoryCollection( 268_innerBuilder.Services.AddSingleton<DashboardCommandExecutor>(); 269_innerBuilder.Services.AddOptions<TransportOptions>().ValidateOnStart().PostConfigure(MapTransportOptionsFromCustomKeys); 270_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<TransportOptions>, TransportOptionsValidator>()); 271_innerBuilder.Services.AddSingleton<DashboardServiceHost>(); 272_innerBuilder.Services.AddHostedService(sp => sp.GetRequiredService<DashboardServiceHost>()); 273_innerBuilder.Services.AddSingleton<IDashboardEndpointProvider, HostDashboardEndpointProvider>(); 274_innerBuilder.Services.AddLifecycleHook<DashboardLifecycleHook>(); 275_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DashboardOptions>, ConfigureDefaultDashboardOptions>()); 276_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<DashboardOptions>, ValidateDashboardOptions>()); 280_innerBuilder.Services.AddSingleton<ApplicationExecutor>(); 281_innerBuilder.Services.AddSingleton<IDcpDependencyCheckService, DcpDependencyCheck>(); 282_innerBuilder.Services.AddHostedService<DcpHostService>(); 283_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DcpOptions>, ConfigureDefaultDcpOptions>()); 284_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<DcpOptions>, ValidateDcpOptions>()); 285_innerBuilder.Services.AddSingleton<DcpNameGenerator>(); 288_innerBuilder.Services.AddSingleton(new Locations()); 289_innerBuilder.Services.AddSingleton<IKubernetesService, KubernetesService>(); 292_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<CodespacesOptions>, ConfigureCodespacesOptions>()); 293_innerBuilder.Services.AddSingleton<CodespacesUrlRewriter>(); 294_innerBuilder.Services.AddHostedService<CodespacesResourceUrlRewriterService>(); 301_innerBuilder.Services.AddKeyedSingleton<IDistributedApplicationPublisher, ManifestPublisher>("manifest"); 311_innerBuilder.Services.AddSingleton(ExecutionContext); 317_innerBuilder.Services.AddSingleton<IValidateOptions<HealthCheckServiceOptions>>(sp => 346_innerBuilder.Services.AddSingleton<IConfigureOptions<HealthCheckPublisherOptions>>(sp => 360_innerBuilder.Services.AddSingleton<ResourceHealthCheckService>(); 361_innerBuilder.Services.AddHostedService<ResourceHealthCheckService>(sp => sp.GetRequiredService<ResourceHealthCheckService>()); 389_innerBuilder.Configuration.AddCommandLine(options.Args ?? [], switchMappings); 390_innerBuilder.Services.Configure<PublishingOptions>(_innerBuilder.Configuration.GetSection(PublishingOptions.Publishing)); 410var application = new DistributedApplication(_innerBuilder.Build());