From 9b1256fa355393b9c9743b1580ea4aa421caade4 Mon Sep 17 00:00:00 2001 From: jeffrapp Date: Thu, 20 Aug 2020 13:28:11 -0500 Subject: [PATCH] Update ExchangeAttribute.cs --- src/RawRabbit.Enrichers.Attributes/ExchangeAttribute.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/RawRabbit.Enrichers.Attributes/ExchangeAttribute.cs b/src/RawRabbit.Enrichers.Attributes/ExchangeAttribute.cs index c9df21d5..75688012 100644 --- a/src/RawRabbit.Enrichers.Attributes/ExchangeAttribute.cs +++ b/src/RawRabbit.Enrichers.Attributes/ExchangeAttribute.cs @@ -11,7 +11,7 @@ public class ExchangeAttribute : Attribute public string Name { get; set; } public ExchangeType Type { get; set; } - public bool Durable { set { NullableDurability = value; } } - public bool AutoDelete { set { NullableAutoDelete = value; } } + public bool Durable { get { return NullableDurability.GetValueOrDefault(); } set { NullableDurability = value; } } + public bool AutoDelete { get { return NullableAutoDelete.GetValueOrDefault(); } set { NullableAutoDelete = value; } } } }