Implemented interface member:
property
Services
Microsoft.Extensions.Hosting.IHost.Services
1 write to Services
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
49
Services
= services;
7 references to Services
Microsoft.Extensions.Hosting (7)
Internal\Host.cs (7)
100
IStartupValidator? startupValidator =
Services
.GetService<IStartupValidator>();
113
asyncValidators =
Services
.GetServices<IAsyncStartupValidator>().ToArray();
184
_hostedServices ??=
Services
.GetRequiredService<IEnumerable<IHostedService>>();
555
await DisposeAsync(
Services
).ConfigureAwait(false);
581
public IServiceProvider Services => host.
Services
;
582
public IConfiguration Configuration => host.
Services
.GetRequiredService<IConfiguration>();
588
public List<IHostedService> HostedServices => new List<IHostedService>(host._hostedServices ??= host.
Services
.GetRequiredService<IEnumerable<IHostedService>>());