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