2 implementations of IHostedLifecycleService
Aspire.Hosting (2)
DistributedApplicationLifecycle.cs (1)
14DistributedApplicationExecutionContext executionContext) : IHostedLifecycleService
Orchestrator\OrchestratorHostService.cs (1)
10internal sealed class OrchestratorHostService : IHostedLifecycleService, IAsyncDisposable
10 references to IHostedLifecycleService
Microsoft.Extensions.Hosting (10)
HostOptions.cs (4)
21/// <see cref="IHostedLifecycleService.StoppingAsync(CancellationToken)"/> and 22/// <see cref="IHostedLifecycleService.StoppedAsync(CancellationToken)"/>. 31/// <see cref="IHostedLifecycleService.StartingAsync(CancellationToken)"/> and 32/// <see cref="IHostedLifecycleService.StartedAsync(CancellationToken)"/>.
Internal\Host.cs (6)
30private IEnumerable<IHostedLifecycleService>? _hostedLifecycleServices; 244IEnumerable<IHostedLifecycleService>? reversedLifetimeServices = _hostedLifecycleServices?.Reverse(); 395private static List<IHostedLifecycleService>? GetHostLifecycles(IEnumerable<IHostedService> hostedServices) 397List<IHostedLifecycleService>? _result = null; 401if (hostedService is IHostedLifecycleService service) 403_result ??= new List<IHostedLifecycleService>();