1 write to _host
Aspire.Hosting (1)
DistributedApplication.cs (1)
63_host = host;
15 references to _host
Aspire.Hosting (15)
DistributedApplication.cs (15)
240public IServiceProvider Services => _host.Services; 292public ResourceNotificationService ResourceNotifications => _resourceNotifications ??= _host.Services.GetRequiredService<ResourceNotificationService>(); 304public ResourceCommandService ResourceCommands => _resourceCommands ??= _host.Services.GetRequiredService<ResourceCommandService>(); 334_host.Dispose(); 366return ((IAsyncDisposable)_host).DisposeAsync(); 376var executionContext = _host.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 382await _host.StartAsync(cancellationToken).ConfigureAwait(false); 388await _host.StopAsync(cancellationToken).ConfigureAwait(false); 422var executionContext = _host.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 428await _host.RunAsync(cancellationToken).ConfigureAwait(false); 466var beforeStartEvent = new BeforeStartEvent(_host.Services, _host.Services.GetRequiredService<DistributedApplicationModel>()); 467var eventing = _host.Services.GetRequiredService<IDistributedApplicationEventing>(); 470var lifecycleHooks = _host.Services.GetServices<IDistributedApplicationLifecycleHook>(); 471var appModel = _host.Services.GetRequiredService<DistributedApplicationModel>();