1 write to _host
Aspire.Hosting (1)
DistributedApplication.cs (1)
82
_host
= host;
28 references to _host
Aspire.Hosting (28)
DistributedApplication.cs (28)
335
public IServiceProvider Services =>
_host
.Services;
399
public ResourceCommandService ResourceCommands => _resourceCommands ??=
_host
.Services.GetRequiredService<ResourceCommandService>();
429
_host
.Dispose();
461
return ((IAsyncDisposable)
_host
).DisposeAsync();
468
_localeOverrideContext =
_host
.Services.GetRequiredService<LocaleOverrideContext>();
469
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
470
ProfilingTelemetry.EnsureInitialized(
_host
.Services);
490
await
_host
.StartAsync(cancellationToken).ConfigureAwait(false);
502
await
_host
.StopAsync(cancellationToken).ConfigureAwait(false);
540
ProfilingTelemetry.EnsureInitialized(
_host
.Services);
541
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
544
var lifetime =
_host
.Services.GetRequiredService<IHostApplicationLifetime>();
565
await
_host
.StartAsync(cancellationToken).ConfigureAwait(false);
574
await
_host
.WaitForShutdownAsync(cancellationToken).ConfigureAwait(false);
584
=>
_host
.Services.GetService<DistributedApplicationLifecycle>()?.LogStartupInformation();
620
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
625
var eventSubscribers =
_host
.Services.GetServices<IDistributedApplicationEventingSubscriber>().ToArray();
626
var eventing =
_host
.Services.GetRequiredService<IDistributedApplicationEventing>();
627
var execContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
646
var logger =
_host
.Services.GetRequiredService<ILogger<DistributedApplication>>();
654
var beforeStartEvent = new BeforeStartEvent(
_host
.Services,
_host
.Services.GetRequiredService<DistributedApplicationModel>());
669
var lifecycleHooks =
_host
.Services.GetServices<IDistributedApplicationLifecycleHook>().ToArray();
671
var appModel =
_host
.Services.GetRequiredService<DistributedApplicationModel>();
694
var pipeline =
_host
.Services.GetRequiredService<IDistributedApplicationPipeline>();
704
_host
.Services,
743
if (
_host
.Services.GetService<InteractionServiceConsumerState>() is { } consumerState)
833
public readonly IHost Host => app.
_host
;