/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/Exceptions/ExceptionInfoException.cs
28 строк
849 B
Chris Patterson
Fixed #3719 - fault not properly produced when job consumer cannot be started
26 сен 2022, 20:04
26 сен 2022, 20:04
6661069
Код
Авторство
О чём код?
namespace MassTransit { using System; using System.Collections; [Serializable] public class ExceptionInfoException : MassTransitException { readonly IDictionary? _data; public ExceptionInfoException(ExceptionInfo exceptionInfo) : base(exceptionInfo.Message, exceptionInfo.InnerException != null ? new ExceptionInfoException(exceptionInfo.InnerException) : default) { ExceptionInfo = exceptionInfo; if (ExceptionInfo.Data != null) _data = (IDictionary)ExceptionInfo.Data; } public ExceptionInfo ExceptionInfo { get; } public override string StackTrace => ExceptionInfo.StackTrace; public override string Source => ExceptionInfo.Source; public override IDictionary Data => _data ?? base.Data; } }