/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit/DependencyInjection/Configuration/MassTransitHealthCheckOptions.cs
43 строки
2 KB
Chris Patterson
Massive file cleanup
27 мар 2024, 02:43
27 мар 2024, 02:43
2ac69e8
Код
Авторство
О чём код?
#nullable enable namespace MassTransit.Configuration { using System; using System.Collections.Generic; using Microsoft.Extensions.Diagnostics.HealthChecks; public class MassTransitHealthCheckOptions<TBus> : IHealthCheckOptionsConfigurator, IHealthCheckOptions where TBus : IBus { public MassTransitHealthCheckOptions() { Tags = new HashSet<string>(StringComparer.OrdinalIgnoreCase); } /// <summary> /// The health check name. If null the type name of bus instance will be used /// </summary> public string? Name { get; set; } /// <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; set; } /// <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; set; } /// <summary> /// A list of tags that can be used to filter sets of health checks. If empty, the default tags /// will be used. /// </summary> public HashSet<string> Tags { get; } } }