1 write to _host
Aspire.Hosting (1)
DistributedApplication.cs (1)
82_host = host;
28 references to _host
Aspire.Hosting (28)
DistributedApplication.cs (28)
335public IServiceProvider Services => _host.Services; 399public ResourceCommandService ResourceCommands => _resourceCommands ??= _host.Services.GetRequiredService<ResourceCommandService>(); 429_host.Dispose(); 461return ((IAsyncDisposable)_host).DisposeAsync(); 468_localeOverrideContext = _host.Services.GetRequiredService<LocaleOverrideContext>(); 469var configuration = _host.Services.GetRequiredService<IConfiguration>(); 470ProfilingTelemetry.EnsureInitialized(_host.Services); 490await _host.StartAsync(cancellationToken).ConfigureAwait(false); 502await _host.StopAsync(cancellationToken).ConfigureAwait(false); 540ProfilingTelemetry.EnsureInitialized(_host.Services); 541var configuration = _host.Services.GetRequiredService<IConfiguration>(); 544var lifetime = _host.Services.GetRequiredService<IHostApplicationLifetime>(); 565await _host.StartAsync(cancellationToken).ConfigureAwait(false); 574await _host.WaitForShutdownAsync(cancellationToken).ConfigureAwait(false); 584=> _host.Services.GetService<DistributedApplicationLifecycle>()?.LogStartupInformation(); 620var configuration = _host.Services.GetRequiredService<IConfiguration>(); 625var eventSubscribers = _host.Services.GetServices<IDistributedApplicationEventingSubscriber>().ToArray(); 626var eventing = _host.Services.GetRequiredService<IDistributedApplicationEventing>(); 627var execContext = _host.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 646var logger = _host.Services.GetRequiredService<ILogger<DistributedApplication>>(); 654var beforeStartEvent = new BeforeStartEvent(_host.Services, _host.Services.GetRequiredService<DistributedApplicationModel>()); 669var lifecycleHooks = _host.Services.GetServices<IDistributedApplicationLifecycleHook>().ToArray(); 671var appModel = _host.Services.GetRequiredService<DistributedApplicationModel>(); 694var pipeline = _host.Services.GetRequiredService<IDistributedApplicationPipeline>(); 704_host.Services, 743if (_host.Services.GetService<InteractionServiceConsumerState>() is { } consumerState) 833public readonly IHost Host => app._host;