/// <summary>
 ///     Initializes a new instance of the <see cref="ConsumersHealthCheck" /> class.
 /// </summary>
 /// <param name="service">
 ///     The <see cref="IConsumersHealthCheckService" /> implementation to be used to check the consumers.
 /// </param>
 /// <param name="minHealthyStatus">
 ///     The minimum <see cref="ConsumerStatus" /> a consumer must have to be considered healthy.
 /// </param>
 public ConsumersHealthCheck(
     IConsumersHealthCheckService service,
     ConsumerStatus minHealthyStatus)
 {
     _service          = service;
     _minHealthyStatus = minHealthyStatus;
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConsumersHealthCheck" /> class.
 /// </summary>
 /// <param name="service">
 ///     The <see cref="IConsumersHealthCheckService" /> implementation to be used to check the consumers.
 /// </param>
 /// <param name="minHealthyStatus">
 ///     The minimum <see cref="ConsumerStatus" /> a consumer must have to be considered healthy.
 /// </param>
 /// <param name="gracePeriod">
 ///     The grace period to observe after each status change before a consumer is considered unhealthy.
 /// </param>
 /// <param name="endpointsFilter">
 ///     An optional filter to be applied to the endpoints to be tested.
 /// </param>
 public ConsumersHealthCheck(
     IConsumersHealthCheckService service,
     ConsumerStatus minHealthyStatus,
     TimeSpan gracePeriod,
     Func <IConsumerEndpoint, bool>?endpointsFilter)
 {
     _service          = service;
     _minHealthyStatus = minHealthyStatus;
     _gracePeriod      = gracePeriod;
     _endpointsFilter  = endpointsFilter;
 }
Example #3
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="ConsumersHealthCheck" /> class.
 /// </summary>
 /// <param name="service">
 ///     The <see cref="IConsumersHealthCheckService" /> implementation to be used to check the consumers.
 /// </param>
 public ConsumersHealthCheck(IConsumersHealthCheckService service)
 {
     _service = service;
 }