1 implementation of IHostedLifecycleService
Aspire.Hosting (1)
Dcp\DcpHostService.cs (1)
18
internal sealed class DcpHostService :
IHostedLifecycleService
, IAsyncDisposable
11 references to IHostedLifecycleService
Aspire.Hosting (1)
DistributedApplicationLifecycle.cs (1)
14
DistributedApplicationExecutionContext executionContext) :
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;
245
IEnumerable<
IHostedLifecycleService
>? reversedLifetimeServices = _hostedLifecycleServices?.Reverse();
392
private static List<
IHostedLifecycleService
>? GetHostLifecycles(IEnumerable<IHostedService> hostedServices)
394
List<
IHostedLifecycleService
>? _result = null;
398
if (hostedService is
IHostedLifecycleService
service)
400
_result ??= new List<
IHostedLifecycleService
>();