2 implementations of IHealthCheckPublisher
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
TelemetryHealthCheckPublisher.cs (1)
16internal sealed class TelemetryHealthCheckPublisher : IHealthCheckPublisher
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (1)
HealthCheckPublisherHostedServiceTest.cs (1)
795private class TestPublisher : IHealthCheckPublisher
33 references to IHealthCheckPublisher
Microsoft.Extensions.Diagnostics.HealthChecks (14)
HealthCheckPublisherHostedService.cs (10)
25private readonly IHealthCheckPublisher[] _publishers; 36IEnumerable<IHealthCheckPublisher> publishers) 204private async Task RunPublisherAsync(IHealthCheckPublisher publisher, HealthReport report, CancellationToken cancellationToken) 262public static partial void HealthCheckPublisherBegin(ILogger logger, IHealthCheckPublisher HealthCheckPublisher); 264public static void HealthCheckPublisherEnd(ILogger logger, IHealthCheckPublisher HealthCheckPublisher, TimeSpan duration) => 268private static partial void HealthCheckPublisherEnd(ILogger logger, IHealthCheckPublisher HealthCheckPublisher, double ElapsedMilliseconds); 270public static void HealthCheckPublisherError(ILogger logger, IHealthCheckPublisher publisher, TimeSpan duration, Exception exception) => 275private static partial void HealthCheckPublisherError(ILogger logger, IHealthCheckPublisher HealthCheckPublisher, double ElapsedMilliseconds, Exception exception); 277public static void HealthCheckPublisherTimeout(ILogger logger, IHealthCheckPublisher publisher, TimeSpan duration) => 281private static partial void HealthCheckPublisherTimeout(ILogger logger, IHealthCheckPublisher HealthCheckPublisher, double ElapsedMilliseconds);
HealthCheckPublisherOptions.cs (4)
9/// Options for the default service that executes <see cref="IHealthCheckPublisher"/> instances. 27/// <see cref="IHealthCheckPublisher"/> instances. The delay is applied once at startup, and does 45/// Gets or sets the period of <see cref="IHealthCheckPublisher"/> execution. The default value is 81/// Gets or sets the timeout for executing the health checks an all <see cref="IHealthCheckPublisher"/>
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (6)
HealthCheckRegistration.cs (1)
163/// <see cref="IHealthCheckPublisher"/> instances. The delay is applied once at startup, and does
IHealthCheckPublisher.cs (5)
16/// data to all registered <see cref="IHealthCheckPublisher"/> instances. 19/// To provide an <see cref="IHealthCheckPublisher"/> implementation, register an instance or type as a singleton 23/// <see cref="IHealthCheckPublisher"/> instances are provided with a <see cref="HealthReport"/> after executing 24/// health checks in a background thread. The use of <see cref="IHealthCheckPublisher"/> depend on hosting in 25/// an application using <c>IWebHost</c> or generic host (<c>IHost</c>). Execution of <see cref="IHealthCheckPublisher"/>
Microsoft.Extensions.Diagnostics.HealthChecks.Common (3)
CommonHealthChecksExtensions.TelemetryPublisher.cs (3)
24.AddSingleton<IHealthCheckPublisher, TelemetryHealthCheckPublisher>(); 38.AddSingleton<IHealthCheckPublisher, TelemetryHealthCheckPublisher>(); 52.AddSingleton<IHealthCheckPublisher, TelemetryHealthCheckPublisher>();
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (6)
TelemetryHealthChecksPublisherExtensionsTests.cs (6)
25var publishers = serviceProvider.GetRequiredService<IEnumerable<IHealthCheckPublisher>>(); 27var publisher = Assert.Single(publishers); 45var publishers = serviceProvider.GetRequiredService<IEnumerable<IHealthCheckPublisher>>(); 47var publisher = Assert.Single(publishers); 63var publishers = serviceProvider.GetRequiredService<IEnumerable<IHealthCheckPublisher>>(); 65var publisher = Assert.Single(publishers);
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (4)
HealthCheckPublisherHostedServiceTest.cs (4)
44var publishers = new IHealthCheckPublisher[] 71var publishers = new IHealthCheckPublisher[] 737IHealthCheckPublisher[] publishers, 770serviceCollection.AddSingleton<IHealthCheckPublisher>(publishers[i]);