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
TThe 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
cancellationTokenCancellationTokenA 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
Tused for health probing.