Show / Hide Table of Contents

    Class ConsumersHealthCheck

    Verifies whether all consumers are connected.

    Inheritance
    object
    ConsumersHealthCheck
    Implements
    IHealthCheck
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Silverback.Messaging.HealthChecks
    Assembly: Silverback.Integration.HealthChecks.dll
    Syntax
    public class ConsumersHealthCheck : IHealthCheck

    Constructors

    ConsumersHealthCheck(IConsumersHealthCheckService, ConsumerStatus, TimeSpan)

    Initializes a new instance of the ConsumersHealthCheck class.

    Declaration
    public ConsumersHealthCheck(IConsumersHealthCheckService service, ConsumerStatus minHealthyStatus, TimeSpan gracePeriod)
    Parameters
    Type Name Description
    IConsumersHealthCheckService service

    The IConsumersHealthCheckService implementation to be used to check the consumers.

    ConsumerStatus minHealthyStatus

    The minimum ConsumerStatus a consumer must have to be considered healthy.

    TimeSpan gracePeriod

    The grace period to observe after each status change before a consumer is considered unhealthy.

    Methods

    CheckHealthAsync(HealthCheckContext, CancellationToken)

    Verifies whether all consumers are connected.

    Declaration
    public Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    HealthCheckContext context
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<HealthCheckResult>

    Implements

    IHealthCheck
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini