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)
55
public IHostEnvironment Environment =>
_innerBuilder
.Environment;
58
public ConfigurationManager Configuration =>
_innerBuilder
.Configuration;
61
public 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"));
153
AppHostDirectory = options.ProjectDirectory ??
_innerBuilder
.Environment.ContentRootPath;
154
var 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();
217
if (!IsDashboardUnsecured(
_innerBuilder
.Configuration))
221
_innerBuilder
.Configuration.AddInMemoryCollection(
229
if (
_innerBuilder
.Configuration[KnownConfigNames.DashboardFrontendBrowserToken] is not { Length: > 0 } browserToken)
235
_innerBuilder
.Configuration.AddInMemoryCollection(
243
if (
_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));
410
var application = new DistributedApplication(
_innerBuilder
.Build());