/
vshmidt
/
masstransit
Обзор
Документация
Войти
/
vshmidt
/
masstransit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/MassTransit.Abstractions/Exceptions/RequestFaultException.cs
47 строк
1 KB
Chris Patterson
Changed the Queue TTL for response/instance queues logic to be inside the topology builder so that it applies to all queue types.
23 янв 2025, 03:22
23 янв 2025, 03:22
29ec12e
Код
Авторство
О чём код?
namespace MassTransit { using System; using System.Linq; using System.Runtime.Serialization; [Serializable] public class RequestFaultException : RequestException { public RequestFaultException(string requestType, Fault fault) : base($"The {requestType} request faulted: {string.Join(Environment.NewLine, fault.Exceptions?.Select(x => x.Message) ?? [])}") { RequestType = requestType; Fault = fault; } public RequestFaultException() { } #if NET8_0_OR_GREATER [Obsolete("Formatter-based serialization is obsolete and should not be used.")] #endif protected RequestFaultException(SerializationInfo info, StreamingContext context) : base(info, context) { RequestType = info.GetString("RequestType"); Fault = info.GetValue("Fault", typeof(Fault)) as Fault; } public string? RequestType { get; private set; } public Fault? Fault { get; private set; } #if NET8_0_OR_GREATER [Obsolete("Formatter-based serialization is obsolete and should not be used.")] #endif public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); info.AddValue("RequestType", RequestType); info.AddValue("Fault", Fault); } } }