1 write to _host
Aspire.Hosting (1)
DistributedApplication.cs (1)
70
_host
= host;
19 references to _host
Aspire.Hosting (19)
DistributedApplication.cs (19)
293
public IServiceProvider Services =>
_host
.Services;
357
public ResourceCommandService ResourceCommands => _resourceCommands ??=
_host
.Services.GetRequiredService<ResourceCommandService>();
387
_host
.Dispose();
419
return ((IAsyncDisposable)
_host
).DisposeAsync();
426
_localeOverrideContext =
_host
.Services.GetRequiredService<LocaleOverrideContext>();
427
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
434
var executionContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
440
await
_host
.StartAsync(cancellationToken).ConfigureAwait(false);
446
await
_host
.StopAsync(cancellationToken).ConfigureAwait(false);
487
var executionContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
493
await
_host
.RunAsync(cancellationToken).ConfigureAwait(false);
531
var eventSubscribers =
_host
.Services.GetServices<IDistributedApplicationEventingSubscriber>();
532
var eventing =
_host
.Services.GetRequiredService<IDistributedApplicationEventing>();
533
var execContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
539
var beforeStartEvent = new BeforeStartEvent(
_host
.Services,
_host
.Services.GetRequiredService<DistributedApplicationModel>());
543
var lifecycleHooks =
_host
.Services.GetServices<IDistributedApplicationLifecycleHook>();
545
var appModel =
_host
.Services.GetRequiredService<DistributedApplicationModel>();
600
public readonly IHost Host => app.
_host
;