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)
97
_hostedServices ??=
Services
.GetRequiredService<IEnumerable<IHostedService>>();
109
IStartupValidator? validator =
Services
.GetService<IStartupValidator>();
112
IAsyncStartupValidator? asyncValidator =
Services
.GetService<IAsyncStartupValidator>();
486
await DisposeAsync(
Services
).ConfigureAwait(false);
512
public IServiceProvider Services => host.
Services
;
513
public IConfiguration Configuration => host.
Services
.GetRequiredService<IConfiguration>();
519
public List<IHostedService> HostedServices => new List<IHostedService>(host._hostedServices ??= host.
Services
.GetRequiredService<IEnumerable<IHostedService>>());