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