Show / Hide Table of Contents

    Class OutboundEndpointsHealthCheck

    Sends a ping message to all the outbound endpoints to verify that they can all be produced to.

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

    Constructors

    | Improve this doc View source

    OutboundEndpointsHealthCheck(IOutboundEndpointsHealthCheckService)

    Initializes a new instance of the OutboundEndpointsHealthCheck class.

    Declaration
    public OutboundEndpointsHealthCheck(IOutboundEndpointsHealthCheckService service)
    Parameters
    Type Name Description
    IOutboundEndpointsHealthCheckService service

    The IOutboundEndpointsHealthCheckService implementation to be used to ping the services.

    Methods

    | Improve this doc View source

    CheckHealthAsync(HealthCheckContext, CancellationToken)

    Runs the health check, returning the status of the component being checked.

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

    A context object associated with the current execution.

    CancellationToken cancellationToken

    A CancellationToken that can be used to cancel the health check.

    Returns
    Type Description
    Task<HealthCheckResult>

    A Task<TResult> that completes when the health check has finished, yielding the status of the component being checked.

    Implements

    IHealthCheck
    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini