Interface IHealthCheckRegistry
- Namespace
- Acuit.Pinpoint.HealthChecks
- Assembly
- Acuit.Pinpoint.HealthChecks.Abstractions.dll
A registry that allows health checks to be added and removed dynamically at runtime (i.e., by plug-ins).
public interface IHealthCheckRegistry
- Extension Methods
Methods
RegisterHealthCheck(HealthCheckRegistration)
Registers a health check.
IDisposable RegisterHealthCheck(HealthCheckRegistration registration)
Parameters
registrationHealthCheckRegistrationThe registration information associated with an IHealthCheck implementation.
Returns
- IDisposable
A IDisposable that can be used to remove the registration.
Remarks
This must be used by plug-ins to register health checks. The .NET AddHealthChecks/AddCheck method will not work for plug-ins, as it works during
application startup, but plug-ins are loaded dynamically after the application has started.
Exceptions
- ArgumentNullException
registrationis null.