2 writes to _hostedServices
Microsoft.Extensions.Hosting (2)
Internal\Host.cs (2)
184
_hostedServices
??= Services.GetRequiredService<IEnumerable<IHostedService>>();
588
public List<IHostedService> HostedServices => new List<IHostedService>(host.
_hostedServices
??= host.Services.GetRequiredService<IEnumerable<IHostedService>>());
5 references to _hostedServices
Microsoft.Extensions.Hosting (5)
Internal\Host.cs (5)
185
_hostedLifecycleServices = GetHostLifecycles(
_hostedServices
);
212
await ForeachService(
_hostedServices
, cancellationToken, concurrent, abortOnFirstException, exceptions,
332
if (!_hostStarting ||
_hostedServices
is null) // Started (and hosted services resolved)?
341
Debug.Assert(
_hostedServices
!= null, "Hosted services are resolved when host is started.");
344
IEnumerable<IHostedService> reversedServices =
_hostedServices
.Reverse();