1 write to _innerBuilder
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
133_innerBuilder = new HostApplicationBuilder(innerBuilderOptions);
61 references to _innerBuilder
Aspire.Hosting (61)
DistributedApplicationBuilder.cs (61)
55public IHostEnvironment Environment => _innerBuilder.Environment; 58public ConfigurationManager Configuration => _innerBuilder.Configuration; 61public IServiceCollection Services => _innerBuilder.Services; 135_innerBuilder.Logging.AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Warning); 136_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel", LogLevel.Error); 137_innerBuilder.Logging.AddFilter("Aspire.Hosting.Dashboard", LogLevel.Error); 138_innerBuilder.Logging.AddFilter("Grpc.AspNetCore.Server.ServerCallHandler", LogLevel.Error); 142_innerBuilder.Logging.AddFilter("Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService", LogLevel.None); 146_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer", LogLevel.Warning); 149_innerBuilder.Logging.AddConfiguration(_innerBuilder.Configuration.GetSection("Logging")); 151AppHostDirectory = options.ProjectDirectory ?? _innerBuilder.Environment.ContentRootPath; 152var appHostName = options.ProjectName ?? _innerBuilder.Environment.ApplicationName; 157_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 164_executionContextOptions = _innerBuilder.Configuration["Publishing:Publisher"] switch 193_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 199_innerBuilder.Services.AddSingleton(sp => new DistributedApplicationModel(Resources)); 200_innerBuilder.Services.AddHostedService<DistributedApplicationLifecycle>(); 201_innerBuilder.Services.AddHostedService<DistributedApplicationRunner>(); 202_innerBuilder.Services.AddSingleton(options); 203_innerBuilder.Services.AddSingleton<ResourceNotificationService>(); 204_innerBuilder.Services.AddSingleton<ResourceLoggerService>(); 205_innerBuilder.Services.AddSingleton<IDistributedApplicationEventing>(Eventing); 206_innerBuilder.Services.AddHealthChecks(); 215if (!IsDashboardUnsecured(_innerBuilder.Configuration)) 219_innerBuilder.Configuration.AddInMemoryCollection( 227if (_innerBuilder.Configuration[KnownConfigNames.DashboardFrontendBrowserToken] is not { Length: > 0 } browserToken) 233_innerBuilder.Configuration.AddInMemoryCollection( 241if (_innerBuilder.Configuration[KnownConfigNames.DashboardResourceServiceClientApiKey] is not { Length: > 0 } apiKey) 247_innerBuilder.Configuration.AddInMemoryCollection( 258_innerBuilder.Configuration.AddInMemoryCollection( 266_innerBuilder.Services.AddSingleton<DashboardCommandExecutor>(); 267_innerBuilder.Services.AddOptions<TransportOptions>().ValidateOnStart().PostConfigure(MapTransportOptionsFromCustomKeys); 268_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<TransportOptions>, TransportOptionsValidator>()); 269_innerBuilder.Services.AddSingleton<DashboardServiceHost>(); 270_innerBuilder.Services.AddHostedService(sp => sp.GetRequiredService<DashboardServiceHost>()); 271_innerBuilder.Services.AddSingleton<IDashboardEndpointProvider, HostDashboardEndpointProvider>(); 272_innerBuilder.Services.AddLifecycleHook<DashboardLifecycleHook>(); 273_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DashboardOptions>, ConfigureDefaultDashboardOptions>()); 274_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<DashboardOptions>, ValidateDashboardOptions>()); 278_innerBuilder.Services.AddSingleton<ApplicationExecutor>(); 279_innerBuilder.Services.AddSingleton<IDcpDependencyCheckService, DcpDependencyCheck>(); 280_innerBuilder.Services.AddHostedService<DcpHostService>(); 281_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DcpOptions>, ConfigureDefaultDcpOptions>()); 282_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<DcpOptions>, ValidateDcpOptions>()); 283_innerBuilder.Services.AddSingleton<DcpNameGenerator>(); 286_innerBuilder.Services.AddSingleton(new Locations()); 287_innerBuilder.Services.AddSingleton<IKubernetesService, KubernetesService>(); 290_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<CodespacesOptions>, ConfigureCodespacesOptions>()); 291_innerBuilder.Services.AddSingleton<CodespacesUrlRewriter>(); 292_innerBuilder.Services.AddHostedService<CodespacesResourceUrlRewriterService>(); 299_innerBuilder.Services.AddKeyedSingleton<IDistributedApplicationPublisher, ManifestPublisher>("manifest"); 309_innerBuilder.Services.AddSingleton(ExecutionContext); 315_innerBuilder.Services.AddSingleton<IValidateOptions<HealthCheckServiceOptions>>(sp => 344_innerBuilder.Services.AddSingleton<IConfigureOptions<HealthCheckPublisherOptions>>(sp => 358_innerBuilder.Services.AddSingleton<ResourceHealthCheckService>(); 359_innerBuilder.Services.AddHostedService<ResourceHealthCheckService>(sp => sp.GetRequiredService<ResourceHealthCheckService>()); 387_innerBuilder.Configuration.AddCommandLine(options.Args ?? [], switchMappings); 388_innerBuilder.Services.Configure<PublishingOptions>(_innerBuilder.Configuration.GetSection(PublishingOptions.Publishing)); 408var application = new DistributedApplication(_innerBuilder.Build());