1 write to _host
Aspire.Hosting (1)
DistributedApplication.cs (1)
62_host = host;
14 references to _host
Aspire.Hosting (14)
DistributedApplication.cs (14)
239public IServiceProvider Services => _host.Services; 291public ResourceNotificationService ResourceNotifications => _resourceNotifications ??= _host.Services.GetRequiredService<ResourceNotificationService>(); 321_host.Dispose(); 353return ((IAsyncDisposable)_host).DisposeAsync(); 363var executionContext = _host.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 369await _host.StartAsync(cancellationToken).ConfigureAwait(false); 375await _host.StopAsync(cancellationToken).ConfigureAwait(false); 409var executionContext = _host.Services.GetRequiredService<DistributedApplicationExecutionContext>(); 415await _host.RunAsync(cancellationToken).ConfigureAwait(false); 453var beforeStartEvent = new BeforeStartEvent(_host.Services, _host.Services.GetRequiredService<DistributedApplicationModel>()); 454var eventing = _host.Services.GetRequiredService<IDistributedApplicationEventing>(); 457var lifecycleHooks = _host.Services.GetServices<IDistributedApplicationLifecycleHook>(); 458var appModel = _host.Services.GetRequiredService<DistributedApplicationModel>();