1 write to _host
Aspire.Hosting (1)
DistributedApplication.cs (1)
75
_host
= host;
26 references to _host
Aspire.Hosting (26)
DistributedApplication.cs (26)
317
public IServiceProvider Services =>
_host
.Services;
381
public ResourceCommandService ResourceCommands => _resourceCommands ??=
_host
.Services.GetRequiredService<ResourceCommandService>();
411
_host
.Dispose();
443
return ((IAsyncDisposable)
_host
).DisposeAsync();
450
_localeOverrideContext =
_host
.Services.GetRequiredService<LocaleOverrideContext>();
451
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
452
ProfilingTelemetry.EnsureInitialized(
_host
.Services);
471
await
_host
.StartAsync(cancellationToken).ConfigureAwait(false);
483
await
_host
.StopAsync(cancellationToken).ConfigureAwait(false);
521
ProfilingTelemetry.EnsureInitialized(
_host
.Services);
522
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
525
var lifetime =
_host
.Services.GetRequiredService<IHostApplicationLifetime>();
544
await
_host
.StartAsync(cancellationToken).ConfigureAwait(false);
553
await
_host
.WaitForShutdownAsync(cancellationToken).ConfigureAwait(false);
595
var configuration =
_host
.Services.GetRequiredService<IConfiguration>();
600
var eventSubscribers =
_host
.Services.GetServices<IDistributedApplicationEventingSubscriber>().ToArray();
601
var eventing =
_host
.Services.GetRequiredService<IDistributedApplicationEventing>();
602
var execContext =
_host
.Services.GetRequiredService<DistributedApplicationExecutionContext>();
621
var logger =
_host
.Services.GetRequiredService<ILogger<DistributedApplication>>();
629
var beforeStartEvent = new BeforeStartEvent(
_host
.Services,
_host
.Services.GetRequiredService<DistributedApplicationModel>());
644
var lifecycleHooks =
_host
.Services.GetServices<IDistributedApplicationLifecycleHook>().ToArray();
646
var appModel =
_host
.Services.GetRequiredService<DistributedApplicationModel>();
670
var pipeline =
_host
.Services.GetRequiredService<IDistributedApplicationPipeline>();
680
_host
.Services,
803
public readonly IHost Host => app.
_host
;