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