30 references to HealthCheckPublisherHostedService
Microsoft.Extensions.Diagnostics.HealthChecks (2)
DependencyInjection\HealthCheckServiceCollectionExtensions.cs (1)
29services.TryAddEnumerable(ServiceDescriptor.Singleton<IHostedService, HealthCheckPublisherHostedService>());
HealthCheckPublisherHostedService.cs (1)
35ILogger<HealthCheckPublisherHostedService> logger,
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (28)
DependencyInjection\ServiceCollectionExtensionsTest.cs (2)
39Assert.Equal(typeof(HealthCheckPublisherHostedService), actual.ImplementationType); 77Assert.Equal(typeof(HealthCheckPublisherHostedService), actual.ImplementationType);
HealthCheckPublisherHostedServiceTest.cs (26)
32public static readonly EventId HealthCheckPublisherProcessingBegin = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherProcessingBeginId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherProcessingBeginName); 33public static readonly EventId HealthCheckPublisherProcessingEnd = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherProcessingEndId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherProcessingEndName); 34public static readonly EventId HealthCheckPublisherBegin = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherBeginId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherBeginName); 35public static readonly EventId HealthCheckPublisherEnd = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherEndId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherEndName); 36public static readonly EventId HealthCheckPublisherError = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherErrorId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherErrorName); 37public static readonly EventId HealthCheckPublisherTimeout = new EventId(HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherTimeoutId, HealthCheckPublisherHostedService.EventIds.HealthCheckPublisherTimeoutName); 48var service = CreateService(publishers); 76var service = CreateService(publishers); 110var service = CreateService(publishers, configurePublisherOptions: (options) => 148var service = CreateService(new[] { publisher }); 191var service = CreateService(new[] { publisher }, sink: sink); 246var service = CreateService(new[] { publisher }, configureBuilder: b => 409var service = CreateService(publishers); 455var service = CreateService(new[] { publisher }, sink: sink); 514var service = CreateService( 674var service = CreateService(publishers, sink: sink); 718var service = CreateService(publishers, sink: sink); 736private HealthCheckPublisherHostedService CreateService( 785return services.GetServices<IHostedService>().OfType<HealthCheckPublisherHostedService>().Single(); 788private Task RunServiceAsync(HealthCheckPublisherHostedService service) => service.RunAsync((TimeSpan.FromMinutes(5), TimeSpan.FromMinutes(5)));