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