1 write to _host
Aspire.Hosting (1)
DistributedApplication.cs (1)
68
_host
= host;
19 references to _host
Aspire.Hosting (19)
DistributedApplication.cs (19)
252
public IServiceProvider Services =>
_host
.Services;
316
public ResourceCommandService ResourceCommands => _resourceCommands ??=
_host
.Services.GetRequiredService<ResourceCommandService>();
346
_host
.Dispose();
378
return ((IAsyncDisposable)
_host
).DisposeAsync();
385
_localeOverrideContext =
_host
.Services.GetRequiredService<LocaleOverrideContext>();
386
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
393
var executionContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
399
await
_host
.StartAsync(cancellationToken).ConfigureAwait(false);
405
await
_host
.StopAsync(cancellationToken).ConfigureAwait(false);
445
var executionContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
451
await
_host
.RunAsync(cancellationToken).ConfigureAwait(false);
489
var eventSubscribers =
_host
.Services.GetServices<IDistributedApplicationEventingSubscriber>();
490
var eventing =
_host
.Services.GetRequiredService<IDistributedApplicationEventing>();
491
var execContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
497
var beforeStartEvent = new BeforeStartEvent(
_host
.Services,
_host
.Services.GetRequiredService<DistributedApplicationModel>());
501
var lifecycleHooks =
_host
.Services.GetServices<IDistributedApplicationLifecycleHook>();
503
var appModel =
_host
.Services.GetRequiredService<DistributedApplicationModel>();
558
public readonly IHost Host => app.
_host
;