1 write to _host
Aspire.Hosting (1)
DistributedApplication.cs (1)
62_host = host;
12 references to _host
Aspire.Hosting (12)
DistributedApplication.cs (12)
206public IServiceProvider Services => _host.Services; 258public ResourceNotificationService ResourceNotifications => _resourceNotifications ??= _host.Services.GetRequiredService<ResourceNotificationService>(); 288_host.Dispose(); 320return ((IAsyncDisposable)_host).DisposeAsync(); 327await _host.StartAsync(cancellationToken).ConfigureAwait(false); 333await _host.StopAsync(cancellationToken).ConfigureAwait(false); 364await _host.RunAsync(cancellationToken).ConfigureAwait(false); 402var beforeStartEvent = new BeforeStartEvent(_host.Services, _host.Services.GetRequiredService<DistributedApplicationModel>()); 403var eventing = _host.Services.GetRequiredService<IDistributedApplicationEventing>(); 406var lifecycleHooks = _host.Services.GetServices<IDistributedApplicationLifecycleHook>(); 407var appModel = _host.Services.GetRequiredService<DistributedApplicationModel>();