Table of Contents

Interface IAsyncHealthCheckProvider<T>

Namespace
Savvyio.Diagnostics
Assembly
Savvyio.Core.dll

Defines a contract for asynchronously providing an underlying target that can be probed to assess health status.

public interface IAsyncHealthCheckProvider<T>

Type Parameters

T

The type of the underlying target used for health probing.

Methods

GetHealthCheckTargetAsync(CancellationToken)

Asynchronously gets the underlying target used for probing health status.

Task<T> GetHealthCheckTargetAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

A CancellationToken that can be used to cancel the asynchronous operation.

Returns

Task<T>

A task that represents the asynchronous operation. The task result contains the target instance of type T used for health probing.