1 write to _host
Aspire.Hosting (1)
DistributedApplication.cs (1)
83_host = host;
30 references to _host
Aspire.Hosting (30)
DistributedApplication.cs (30)
336public IServiceProvider Services => _host.Services; 400public ResourceCommandService ResourceCommands => _resourceCommands ??= _host.Services.GetRequiredService<ResourceCommandService>(); 430_host.Dispose(); 462return ((IAsyncDisposable)_host).DisposeAsync(); 469_localeOverrideContext = _host.Services.GetRequiredService<LocaleOverrideContext>(); 470var configuration = _host.Services.GetRequiredService<IConfiguration>(); 471ProfilingTelemetry.EnsureInitialized(_host.Services); 491await _host.StartAsync(cancellationToken).ConfigureAwait(false); 503await _host.StopAsync(cancellationToken).ConfigureAwait(false); 541ProfilingTelemetry.EnsureInitialized(_host.Services); 542var configuration = _host.Services.GetRequiredService<IConfiguration>(); 545var lifetime = _host.Services.GetRequiredService<IHostApplicationLifetime>(); 566await _host.StartAsync(cancellationToken).ConfigureAwait(false); 575await _host.WaitForShutdownAsync(cancellationToken).ConfigureAwait(false); 585=> _host.Services.GetService<DistributedApplicationLifecycle>()?.LogStartupInformation(); 621var configuration = _host.Services.GetRequiredService<IConfiguration>(); 626var eventSubscribers = _host.Services.GetServices<IDistributedApplicationEventingSubscriber>().ToArray(); 627var eventing = _host.Services.GetRequiredService<IDistributedApplicationEventing>(); 628var execContext = _host.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 647var logger = _host.Services.GetRequiredService<ILogger<DistributedApplication>>(); 655var beforeStartEvent = new BeforeStartEvent(_host.Services, _host.Services.GetRequiredService<DistributedApplicationModel>()); 670var lifecycleHooks = _host.Services.GetServices<IDistributedApplicationLifecycleHook>().ToArray(); 672var appModel = _host.Services.GetRequiredService<DistributedApplicationModel>(); 695var pipeline = _host.Services.GetRequiredService<IDistributedApplicationPipeline>(); 705_host.Services, 743_host.Services.GetRequiredService<TestRunCoordinator>().Start( 744_host.Services.GetRequiredService<IHostApplicationLifetime>().ApplicationStopping); 754if (_host.Services.GetService<InteractionServiceConsumerState>() is { } consumerState) 844public readonly IHost Host => app._host;