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)
55
public IHostEnvironment Environment =>
_innerBuilder
.Environment;
58
public ConfigurationManager Configuration =>
_innerBuilder
.Configuration;
61
public 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"));
151
AppHostDirectory = options.ProjectDirectory ??
_innerBuilder
.Environment.ContentRootPath;
152
var 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();
215
if (!IsDashboardUnsecured(
_innerBuilder
.Configuration))
219
_innerBuilder
.Configuration.AddInMemoryCollection(
227
if (
_innerBuilder
.Configuration[KnownConfigNames.DashboardFrontendBrowserToken] is not { Length: > 0 } browserToken)
233
_innerBuilder
.Configuration.AddInMemoryCollection(
241
if (
_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));
408
var application = new DistributedApplication(
_innerBuilder
.Build());