1 write to _host
Aspire.Hosting (1)
DistributedApplication.cs (1)
83
_host
= host;
30 references to _host
Aspire.Hosting (30)
DistributedApplication.cs (30)
336
public IServiceProvider Services =>
_host
.Services;
400
public ResourceCommandService ResourceCommands => _resourceCommands ??=
_host
.Services.GetRequiredService<ResourceCommandService>();
430
_host
.Dispose();
462
return ((IAsyncDisposable)
_host
).DisposeAsync();
469
_localeOverrideContext =
_host
.Services.GetRequiredService<LocaleOverrideContext>();
470
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
471
ProfilingTelemetry.EnsureInitialized(
_host
.Services);
491
await
_host
.StartAsync(cancellationToken).ConfigureAwait(false);
503
await
_host
.StopAsync(cancellationToken).ConfigureAwait(false);
541
ProfilingTelemetry.EnsureInitialized(
_host
.Services);
542
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
545
var lifetime =
_host
.Services.GetRequiredService<IHostApplicationLifetime>();
566
await
_host
.StartAsync(cancellationToken).ConfigureAwait(false);
575
await
_host
.WaitForShutdownAsync(cancellationToken).ConfigureAwait(false);
585
=>
_host
.Services.GetService<DistributedApplicationLifecycle>()?.LogStartupInformation();
621
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
626
var eventSubscribers =
_host
.Services.GetServices<IDistributedApplicationEventingSubscriber>().ToArray();
627
var eventing =
_host
.Services.GetRequiredService<IDistributedApplicationEventing>();
628
var execContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
647
var logger =
_host
.Services.GetRequiredService<ILogger<DistributedApplication>>();
655
var beforeStartEvent = new BeforeStartEvent(
_host
.Services,
_host
.Services.GetRequiredService<DistributedApplicationModel>());
670
var lifecycleHooks =
_host
.Services.GetServices<IDistributedApplicationLifecycleHook>().ToArray();
672
var appModel =
_host
.Services.GetRequiredService<DistributedApplicationModel>();
695
var pipeline =
_host
.Services.GetRequiredService<IDistributedApplicationPipeline>();
705
_host
.Services,
743
_host
.Services.GetRequiredService<TestRunCoordinator>().Start(
744
_host
.Services.GetRequiredService<IHostApplicationLifetime>().ApplicationStopping);
754
if (
_host
.Services.GetService<InteractionServiceConsumerState>() is { } consumerState)
844
public readonly IHost Host => app.
_host
;