/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit/DependencyInjection/Configuration/IHealthCheckOptions.cs
34 строки
1 KB
Dmitry Golubenkov
Fix: MassTransit ignores IHealthCheckOptionsConfigurator.FailureStatus value despite allowing it to be set (#4788)
28 ноя 2023, 04:38
Не верифицирован
28 ноя 2023, 04:38
b32548f
Код
Авторство
О чём код?
#nullable enable namespace MassTransit.Configuration { using System; using System.Collections.Generic; using Microsoft.Extensions.Diagnostics.HealthChecks; public interface IHealthCheckOptions { /// <summary> /// Set the health check name, overrides the default bus type name /// </summary> public string? Name { get; } /// <summary> /// The <see cref="HealthStatus" /> that should be reported when the health check fails. /// If null then the default status of <see cref="HealthStatus.Unhealthy" /> will be reported. /// </summary> [Obsolete("Use MinimalFailureStatus instead.", true)] public HealthStatus? FailureStatus { get; } /// <summary> /// The minimal <see cref="HealthStatus" /> that should be reported when the health check fails. /// If null then all statuses from <see cref="HealthStatus.Unhealthy"/> to <see cref="HealthStatus.Healthy"/> will be reported depending on app health. /// </summary> public HealthStatus? MinimalFailureStatus { get; } /// <summary> /// A list of tags that can be used to filter sets of health checks /// </summary> public HashSet<string> Tags { get; } } }