1 write to _host
Aspire.Hosting (1)
DistributedApplication.cs (1)
82
_host
= host;
26 references to _host
Aspire.Hosting (26)
DistributedApplication.cs (26)
331
public IServiceProvider Services =>
_host
.Services;
395
public ResourceCommandService ResourceCommands => _resourceCommands ??=
_host
.Services.GetRequiredService<ResourceCommandService>();
425
_host
.Dispose();
457
return ((IAsyncDisposable)
_host
).DisposeAsync();
464
_localeOverrideContext =
_host
.Services.GetRequiredService<LocaleOverrideContext>();
465
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
466
ProfilingTelemetry.EnsureInitialized(
_host
.Services);
485
await
_host
.StartAsync(cancellationToken).ConfigureAwait(false);
497
await
_host
.StopAsync(cancellationToken).ConfigureAwait(false);
535
ProfilingTelemetry.EnsureInitialized(
_host
.Services);
536
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
539
var lifetime =
_host
.Services.GetRequiredService<IHostApplicationLifetime>();
558
await
_host
.StartAsync(cancellationToken).ConfigureAwait(false);
567
await
_host
.WaitForShutdownAsync(cancellationToken).ConfigureAwait(false);
609
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
614
var eventSubscribers =
_host
.Services.GetServices<IDistributedApplicationEventingSubscriber>().ToArray();
615
var eventing =
_host
.Services.GetRequiredService<IDistributedApplicationEventing>();
616
var execContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
635
var logger =
_host
.Services.GetRequiredService<ILogger<DistributedApplication>>();
643
var beforeStartEvent = new BeforeStartEvent(
_host
.Services,
_host
.Services.GetRequiredService<DistributedApplicationModel>());
658
var lifecycleHooks =
_host
.Services.GetServices<IDistributedApplicationLifecycleHook>().ToArray();
660
var appModel =
_host
.Services.GetRequiredService<DistributedApplicationModel>();
684
var pipeline =
_host
.Services.GetRequiredService<IDistributedApplicationPipeline>();
694
_host
.Services,
817
public readonly IHost Host => app.
_host
;