<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.21.0-rc.2" />

OpenTelemetry.Extensions.Hosting.Implementation.TelemetryHostedService

sealed class TelemetryHostedService : IHostedLifecycleService, IHostedService
namespace OpenTelemetry.Extensions.Hosting.Implementation { internal sealed class TelemetryHostedService : IHostedLifecycleService, IHostedService { public TelemetryHostedService(ITelemetryHostInitializer initializer); public Task StartingAsync(CancellationToken cancellationToken); public Task StartAsync(CancellationToken cancellationToken); public Task StartedAsync(CancellationToken cancellationToken); public Task StoppingAsync(CancellationToken cancellationToken); public Task StopAsync(CancellationToken cancellationToken); public Task StoppedAsync(CancellationToken cancellationToken); } }