3 implementations of IHostedLifecycleService
Aspire.Hosting (2)
DistributedApplicationLifecycle.cs (1)
15
LocaleOverrideContext localeOverrideContext) :
IHostedLifecycleService
Orchestrator\OrchestratorHostService.cs (1)
10
internal sealed class OrchestratorHostService :
IHostedLifecycleService
, IAsyncDisposable
Aspire.Hosting.Tests (1)
AppHostSmokeTests.cs (1)
97
private sealed class TestHostedService :
IHostedLifecycleService
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)
30
private IEnumerable<
IHostedLifecycleService
>? _hostedLifecycleServices;
256
IEnumerable<
IHostedLifecycleService
>? reversedLifetimeServices = _hostedLifecycleServices?.Reverse();
435
private static List<
IHostedLifecycleService
>? GetHostLifecycles(IEnumerable<IHostedService> hostedServices)
437
List<
IHostedLifecycleService
>? _result = null;
441
if (hostedService is
IHostedLifecycleService
service)
443
_result ??= new List<
IHostedLifecycleService
>();