1 write to _host
Aspire.Hosting (1)
DistributedApplication.cs (1)
70
_host
= host;
19 references to _host
Aspire.Hosting (19)
DistributedApplication.cs (19)
291
public IServiceProvider Services =>
_host
.Services;
355
public ResourceCommandService ResourceCommands => _resourceCommands ??=
_host
.Services.GetRequiredService<ResourceCommandService>();
385
_host
.Dispose();
417
return ((IAsyncDisposable)
_host
).DisposeAsync();
424
_localeOverrideContext =
_host
.Services.GetRequiredService<LocaleOverrideContext>();
425
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
432
var executionContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
438
await
_host
.StartAsync(cancellationToken).ConfigureAwait(false);
444
await
_host
.StopAsync(cancellationToken).ConfigureAwait(false);
485
var executionContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
491
await
_host
.RunAsync(cancellationToken).ConfigureAwait(false);
529
var eventSubscribers =
_host
.Services.GetServices<IDistributedApplicationEventingSubscriber>();
530
var eventing =
_host
.Services.GetRequiredService<IDistributedApplicationEventing>();
531
var execContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
537
var beforeStartEvent = new BeforeStartEvent(
_host
.Services,
_host
.Services.GetRequiredService<DistributedApplicationModel>());
541
var lifecycleHooks =
_host
.Services.GetServices<IDistributedApplicationLifecycleHook>();
543
var appModel =
_host
.Services.GetRequiredService<DistributedApplicationModel>();
598
public readonly IHost Host => app.
_host
;