1 write to _host
Aspire.Hosting (1)
DistributedApplication.cs (1)
67
_host
= host;
17 references to _host
Aspire.Hosting (17)
DistributedApplication.cs (17)
244
public IServiceProvider Services =>
_host
.Services;
296
public ResourceNotificationService ResourceNotifications => _resourceNotifications ??=
_host
.Services.GetRequiredService<ResourceNotificationService>();
308
public ResourceCommandService ResourceCommands => _resourceCommands ??=
_host
.Services.GetRequiredService<ResourceCommandService>();
338
_host
.Dispose();
370
return ((IAsyncDisposable)
_host
).DisposeAsync();
377
_localeOverrideContext =
_host
.Services.GetRequiredService<LocaleOverrideContext>();
378
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
385
var executionContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
391
await
_host
.StartAsync(cancellationToken).ConfigureAwait(false);
397
await
_host
.StopAsync(cancellationToken).ConfigureAwait(false);
437
var executionContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
443
await
_host
.RunAsync(cancellationToken).ConfigureAwait(false);
481
var beforeStartEvent = new BeforeStartEvent(
_host
.Services,
_host
.Services.GetRequiredService<DistributedApplicationModel>());
482
var eventing =
_host
.Services.GetRequiredService<IDistributedApplicationEventing>();
485
var lifecycleHooks =
_host
.Services.GetServices<IDistributedApplicationLifecycleHook>();
486
var appModel =
_host
.Services.GetRequiredService<DistributedApplicationModel>();