2 writes to _hostedServices
Microsoft.Extensions.Hosting (2)
Internal\Host.cs (2)
94
_hostedServices
??= Services.GetRequiredService<IEnumerable<IHostedService>>();
459
public List<IHostedService> HostedServices => new List<IHostedService>(host.
_hostedServices
??= host.Services.GetRequiredService<IEnumerable<IHostedService>>());
4 references to _hostedServices
Microsoft.Extensions.Hosting (4)
Internal\Host.cs (4)
95
_hostedLifecycleServices = GetHostLifecycles(
_hostedServices
);
121
await ForeachService(
_hostedServices
, cancellationToken, concurrent, abortOnFirstException, exceptions,
240
Debug.Assert(
_hostedServices
!= null, "Hosted services are resolved when host is started.");
243
IEnumerable<IHostedService> reversedServices =
_hostedServices
.Reverse();