1 write to _innerBuilder
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
170_innerBuilder = new HostApplicationBuilder(innerBuilderOptions);
94 references to _innerBuilder
Aspire.Hosting (94)
DistributedApplicationBuilder.cs (94)
65public IHostEnvironment Environment => _innerBuilder.Environment; 68public ConfigurationManager Configuration => _innerBuilder.Configuration; 71public IServiceCollection Services => _innerBuilder.Services; 114var operationConfiguration = _innerBuilder.Configuration["AppHost:Operation"]; 117return _innerBuilder.Configuration["Publishing:Publisher"] switch 124var operation = _innerBuilder.Configuration["AppHost:Operation"]?.ToLowerInvariant() switch 134DistributedApplicationOperation.Publish => new DistributedApplicationExecutionContextOptions(operation, _innerBuilder.Configuration["Publishing:Publisher"] ?? "manifest"), 172_innerBuilder.Services.AddSingleton(TimeProvider.System); 174_innerBuilder.Services.AddSingleton<ILoggerProvider, BackchannelLoggerProvider>(); 175_innerBuilder.Logging.AddFilter("Microsoft.Hosting.Lifetime", LogLevel.Warning); 176_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel", LogLevel.Error); 177_innerBuilder.Logging.AddFilter("Aspire.Hosting.Dashboard", LogLevel.Error); 178_innerBuilder.Logging.AddFilter("Grpc.AspNetCore.Server.ServerCallHandler", LogLevel.Error); 182_innerBuilder.Logging.AddFilter("Microsoft.Extensions.Diagnostics.HealthChecks.DefaultHealthCheckService", LogLevel.None); 186_innerBuilder.Logging.AddFilter("Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer", LogLevel.Warning); 189_innerBuilder.Logging.AddConfiguration(_innerBuilder.Configuration.GetSection("Logging")); 191AppHostDirectory = options.ProjectDirectory ?? _innerBuilder.Environment.ContentRootPath; 192var appHostName = options.ProjectName ?? _innerBuilder.Environment.ApplicationName; 201_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 227_innerBuilder.Configuration.AddInMemoryCollection(new Dictionary<string, string?> 235_innerBuilder.Services.AddSingleton<ExecResourceManager>(); 240_innerBuilder.Services.AddSingleton(sp => new DistributedApplicationModel(Resources)); 241_innerBuilder.Services.AddHostedService<DistributedApplicationLifecycle>(); 242_innerBuilder.Services.AddHostedService<DistributedApplicationRunner>(); 243_innerBuilder.Services.AddHostedService<VersionCheckService>(); 244_innerBuilder.Services.AddSingleton<IVersionFetcher, VersionFetcher>(); 245_innerBuilder.Services.AddSingleton(options); 246_innerBuilder.Services.AddSingleton<ResourceNotificationService>(); 247_innerBuilder.Services.AddSingleton<ResourceLoggerService>(); 248_innerBuilder.Services.AddSingleton<ResourceCommandService>(s => new ResourceCommandService(s.GetRequiredService<ResourceNotificationService>(), s.GetRequiredService<ResourceLoggerService>(), s)); 250_innerBuilder.Services.AddSingleton<InteractionService>(); 251_innerBuilder.Services.AddSingleton<IInteractionService>(sp => sp.GetRequiredService<InteractionService>()); 253_innerBuilder.Services.AddSingleton<IDistributedApplicationEventing>(Eventing); 254_innerBuilder.Services.AddHealthChecks(); 255_innerBuilder.Services.Configure<ResourceNotificationServiceOptions>(o => 261_innerBuilder.Services.AddSingleton<IAspireStore, AspireStore>(sp => 276_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DcpOptions>, ConfigureDefaultDcpOptions>()); 277_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<DcpOptions>, ValidateDcpOptions>()); 280_innerBuilder.Services.AddHostedService<CliOrphanDetector>(); 281_innerBuilder.Services.AddSingleton<BackchannelService>(); 282_innerBuilder.Services.AddHostedService<BackchannelService>(sp => sp.GetRequiredService<BackchannelService>()); 283_innerBuilder.Services.AddSingleton<AppHostRpcTarget>(); 292if (!IsDashboardUnsecured(_innerBuilder.Configuration)) 299SecretsStore.GetOrSetUserSecret(_innerBuilder.Configuration, AppHostAssembly, "AppHost:OtlpApiKey", TokenGenerator.GenerateToken); 302if (_innerBuilder.Configuration.GetString(KnownConfigNames.DashboardFrontendBrowserToken, 309_innerBuilder.Configuration.AddInMemoryCollection( 317var apiKey = _innerBuilder.Configuration.GetString(KnownConfigNames.DashboardResourceServiceClientApiKey, 323_innerBuilder.Configuration.AddInMemoryCollection( 334_innerBuilder.Configuration.AddInMemoryCollection( 342_innerBuilder.Services.AddOptions<TransportOptions>().ValidateOnStart().PostConfigure(MapTransportOptionsFromCustomKeys); 343_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<TransportOptions>, TransportOptionsValidator>()); 344_innerBuilder.Services.AddSingleton<DashboardServiceHost>(); 345_innerBuilder.Services.AddHostedService(sp => sp.GetRequiredService<DashboardServiceHost>()); 346_innerBuilder.Services.AddSingleton<IDashboardEndpointProvider, HostDashboardEndpointProvider>(); 347_innerBuilder.Services.AddLifecycleHook<DashboardLifecycleHook>(); 348_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DashboardOptions>, ConfigureDefaultDashboardOptions>()); 349_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IValidateOptions<DashboardOptions>, ValidateDashboardOptions>()); 357_innerBuilder.Services.AddHostedService<ResourceLoggerForwarderService>(); 361_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<CodespacesOptions>, ConfigureCodespacesOptions>()); 362_innerBuilder.Services.AddSingleton<CodespacesUrlRewriter>(); 363_innerBuilder.Services.AddHostedService<CodespacesResourceUrlRewriterService>(); 364_innerBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IConfigureOptions<DevcontainersOptions>, ConfigureDevcontainersOptions>()); 365_innerBuilder.Services.AddSingleton<DevcontainerSettingsWriter>(); 366_innerBuilder.Services.TryAddLifecycleHook<DevcontainerPortForwardingLifecycleHook>(); 372_innerBuilder.Services.AddSingleton<ApplicationOrchestrator>(); 373_innerBuilder.Services.AddSingleton<ParameterProcessor>(); 374_innerBuilder.Services.AddHostedService<OrchestratorHostService>(); 377_innerBuilder.Services.AddSingleton<IDcpExecutor, DcpExecutor>(); 378_innerBuilder.Services.AddSingleton<DcpExecutorEvents>(); 379_innerBuilder.Services.AddSingleton<DcpHost>(); 380_innerBuilder.Services.AddSingleton<IDcpDependencyCheckService, DcpDependencyCheck>(); 381_innerBuilder.Services.AddSingleton<DcpNameGenerator>(); 384_innerBuilder.Services.AddSingleton(new Locations()); 385_innerBuilder.Services.AddSingleton<IKubernetesService, KubernetesService>(); 394_innerBuilder.Services.AddKeyedSingleton<IContainerRuntime, DockerContainerRuntime>("docker"); 395_innerBuilder.Services.AddKeyedSingleton<IContainerRuntime, PodmanContainerRuntime>("podman"); 396_innerBuilder.Services.AddSingleton<IResourceContainerImageBuilder, ResourceContainerImageBuilder>(); 397_innerBuilder.Services.AddSingleton<PublishingActivityProgressReporter>(); 398_innerBuilder.Services.AddSingleton<IPublishingActivityProgressReporter, PublishingActivityProgressReporter>(sp => sp.GetRequiredService<PublishingActivityProgressReporter>()); 408_innerBuilder.Services.AddSingleton(ExecutionContext); 414_innerBuilder.Services.AddHealthChecks().AddUrlGroup(sp => { 431_innerBuilder.Services.SuppressHealthCheckHttpClientLogging(KnownHealthCheckNames.DashboardHealthCheck); 436_innerBuilder.Services.AddSingleton<IValidateOptions<HealthCheckServiceOptions>>(sp => 465_innerBuilder.Services.AddSingleton<IConfigureOptions<HealthCheckPublisherOptions>>(sp => 479_innerBuilder.Services.AddSingleton<ResourceHealthCheckService>(); 480_innerBuilder.Services.AddHostedService<ResourceHealthCheckService>(sp => sp.GetRequiredService<ResourceHealthCheckService>()); 510_innerBuilder.Configuration.AddCommandLine(options.Args ?? [], switchMappings); 511_innerBuilder.Services.Configure<PublishingOptions>(_innerBuilder.Configuration.GetSection(PublishingOptions.Publishing)); 523_innerBuilder.Configuration.AddCommandLine(options.Args ?? [], switchMappings); 525var execOptionsSection = _innerBuilder.Configuration.GetSection(ExecOptions.SectionName); 526_innerBuilder.Services 566var application = new DistributedApplication(_innerBuilder.Build());