2 writes to _hostedServices
Microsoft.Extensions.Hosting (2)
Internal\Host.cs (2)
97
_hostedServices
??= Services.GetRequiredService<IEnumerable<IHostedService>>();
519
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)
98
_hostedLifecycleServices = GetHostLifecycles(
_hostedServices
);
143
await ForeachService(
_hostedServices
, cancellationToken, concurrent, abortOnFirstException, exceptions,
272
Debug.Assert(
_hostedServices
!= null, "Hosted services are resolved when host is started.");
275
IEnumerable<IHostedService> reversedServices =
_hostedServices
.Reverse();