/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/Transports/MassTransit.EventHubIntegration/Exceptions/EventHubConnectionException.cs
42 строки
1 KB
joegoldman2
Add .NET 8 TFM (#4791)
28 ноя 2023, 16:55
Не верифицирован
28 ноя 2023, 16:55
35743ce
Код
Авторство
О чём код?
namespace MassTransit { using System; using System.Runtime.Serialization; [Serializable] public class EventHubConnectionException : ConnectionException { public EventHubConnectionException() { } public EventHubConnectionException(string message) : base(message) { } public EventHubConnectionException(string message, Exception innerException) : base(message, innerException, IsExceptionTransient(innerException)) { } #if NET8_0_OR_GREATER [Obsolete("Formatter-based serialization is obsolete and should not be used.")] #endif protected EventHubConnectionException(SerializationInfo info, StreamingContext context) : base(info, context) { } static bool IsExceptionTransient(Exception exception) { return exception switch { UnauthorizedAccessException _ => false, _ => true }; } } }