1 write to _innerBuilder
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
134_innerBuilder = new HostApplicationBuilder(innerBuilderOptions);
65 references to _innerBuilder
Aspire.Hosting (65)
DistributedApplicationBuilder.cs (65)
56public IHostEnvironment Environment => _innerBuilder.Environment; 59public ConfigurationManager Configuration => _innerBuilder.Configuration; 62public IServiceCollection Services => _innerBuilder.Services; 136_innerBuilder.Services.AddSingleton(TimeProvider.System); 138_innerBuilder.Logging.AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Warning); 139_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel", LogLevel.Error); 140_innerBuilder.Logging.AddFilter("Aspire.Hosting.Dashboard", LogLevel.Error); 141_innerBuilder.Logging.AddFilter("Grpc.AspNetCore.Server.ServerCallHandler", LogLevel.Error); 145_innerBuilder.Logging.AddFilter("Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService", LogLevel.None); 149_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer", LogLevel.Warning); 152_innerBuilder.Logging.AddConfiguration(_innerBuilder.Configuration.GetSection("Logging")); 154AppHostDirectory = options.ProjectDirectory ?? _innerBuilder.Environment.ContentRootPath; 155var appHostName = options.ProjectName ?? _innerBuilder.Environment.ApplicationName; 160_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 167_executionContextOptions = _innerBuilder.Configuration["Publishing:Publisher"] switch 196_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 202_innerBuilder.Services.AddSingleton(sp => new DistributedApplicationModel(Resources)); 203_innerBuilder.Services.AddHostedService<DistributedApplicationLifecycle>(); 204_innerBuilder.Services.AddHostedService<DistributedApplicationRunner>(); 205_innerBuilder.Services.AddSingleton(options); 206_innerBuilder.Services.AddSingleton<ResourceNotificationService>(); 207_innerBuilder.Services.AddSingleton<ResourceLoggerService>(); 208_innerBuilder.Services.AddSingleton<IDistributedApplicationEventing>(Eventing); 209_innerBuilder.Services.AddHealthChecks(); 218if (!IsDashboardUnsecured(_innerBuilder.Configuration)) 222_innerBuilder.Configuration.AddInMemoryCollection( 230if (_innerBuilder.Configuration[KnownConfigNames.DashboardFrontendBrowserToken] is not { Length: > 0 } browserToken) 236_innerBuilder.Configuration.AddInMemoryCollection( 244if (_innerBuilder.Configuration[KnownConfigNames.DashboardResourceServiceClientApiKey] is not { Length: > 0 } apiKey) 250_innerBuilder.Configuration.AddInMemoryCollection( 261_innerBuilder.Configuration.AddInMemoryCollection( 269_innerBuilder.Services.AddSingleton<DashboardCommandExecutor>(); 270_innerBuilder.Services.AddOptions<TransportOptions>().ValidateOnStart().PostConfigure(MapTransportOptionsFromCustomKeys); 271_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<TransportOptions>, TransportOptionsValidator>()); 272_innerBuilder.Services.AddSingleton<DashboardServiceHost>(); 273_innerBuilder.Services.AddHostedService(sp => sp.GetRequiredService<DashboardServiceHost>()); 274_innerBuilder.Services.AddSingleton<IDashboardEndpointProvider, HostDashboardEndpointProvider>(); 275_innerBuilder.Services.AddLifecycleHook<DashboardLifecycleHook>(); 276_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DashboardOptions>, ConfigureDefaultDashboardOptions>()); 277_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<DashboardOptions>, ValidateDashboardOptions>()); 281_innerBuilder.Services.AddSingleton<ApplicationExecutor>(); 282_innerBuilder.Services.AddSingleton<IDcpDependencyCheckService, DcpDependencyCheck>(); 283_innerBuilder.Services.AddHostedService<DcpHostService>(); 284_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DcpOptions>, ConfigureDefaultDcpOptions>()); 285_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<DcpOptions>, ValidateDcpOptions>()); 286_innerBuilder.Services.AddSingleton<DcpNameGenerator>(); 289_innerBuilder.Services.AddSingleton(new Locations()); 290_innerBuilder.Services.AddSingleton<IKubernetesService, KubernetesService>(); 293_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<CodespacesOptions>, ConfigureCodespacesOptions>()); 294_innerBuilder.Services.AddSingleton<CodespacesUrlRewriter>(); 295_innerBuilder.Services.AddHostedService<CodespacesResourceUrlRewriterService>(); 296_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DevcontainersOptions>, ConfigureDevcontainersOptions>()); 297_innerBuilder.Services.AddSingleton<DevcontainerSettingsWriter>(); 298_innerBuilder.Services.TryAddLifecycleHook<DevcontainerPortForwardingLifecycleHook>(); 305_innerBuilder.Services.AddKeyedSingleton<IDistributedApplicationPublisher, ManifestPublisher>("manifest"); 315_innerBuilder.Services.AddSingleton(ExecutionContext); 321_innerBuilder.Services.AddSingleton<IValidateOptions<HealthCheckServiceOptions>>(sp => 350_innerBuilder.Services.AddSingleton<IConfigureOptions<HealthCheckPublisherOptions>>(sp => 364_innerBuilder.Services.AddSingleton<ResourceHealthCheckService>(); 365_innerBuilder.Services.AddHostedService<ResourceHealthCheckService>(sp => sp.GetRequiredService<ResourceHealthCheckService>()); 393_innerBuilder.Configuration.AddCommandLine(options.Args ?? [], switchMappings); 394_innerBuilder.Services.Configure<PublishingOptions>(_innerBuilder.Configuration.GetSection(PublishingOptions.Publishing)); 414var application = new DistributedApplication(_innerBuilder.Build());