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