GetHealthCheckTargetAsync Method
Definition
- Namespace
- Savvyio.Extensions.RabbitMQ
- Assemblies
- Savvyio.Extensions.RabbitMQ.dll
GetHealthCheckTargetAsync(CancellationToken)
Asynchronously returns an RabbitMQ.Client.IConnection instance used for probing the health status of the RabbitMQ broker.
public Task<IConnection> GetHealthCheckTargetAsync(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenA CancellationToken that can be used to cancel the asynchronous operation.
Returns
- Task<IConnection>
A task that represents the asynchronous operation. The task result contains the RabbitMQ.Client.IConnection instance representing the active connection to the RabbitMQ broker, or a newly created connection if not already initialized.