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