Implemented interface member:
property
Services
Microsoft.Extensions.Hosting.IHost.Services
1 write to Services
Microsoft.Extensions.Hosting (1)
Internal\Host.cs (1)
47
Services
= services;
6 references to Services
Microsoft.Extensions.Hosting (6)
Internal\Host.cs (6)
94
_hostedServices ??=
Services
.GetRequiredService<IEnumerable<IHostedService>>();
98
IStartupValidator? validator =
Services
.GetService<IStartupValidator>();
426
await DisposeAsync(
Services
).ConfigureAwait(false);
452
public IServiceProvider Services => host.
Services
;
453
public IConfiguration Configuration => host.
Services
.GetRequiredService<IConfiguration>();
459
public List<IHostedService> HostedServices => new List<IHostedService>(host._hostedServices ??= host.
Services
.GetRequiredService<IEnumerable<IHostedService>>());