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