diff --git a/src/NServiceBus.Transport.SqlServer/SqlServerTransportInfrastructure.cs b/src/NServiceBus.Transport.SqlServer/SqlServerTransportInfrastructure.cs index 72835a9d6..56c15a6d2 100644 --- a/src/NServiceBus.Transport.SqlServer/SqlServerTransportInfrastructure.cs +++ b/src/NServiceBus.Transport.SqlServer/SqlServerTransportInfrastructure.cs @@ -132,7 +132,7 @@ public override TransportReceiveInfrastructure ConfigureReceiveInfrastructure() IExpiredMessagesPurger expiredMessagesPurger; bool validateExpiredIndex; - if (settings.GetOrDefault(SettingsKeys.PurgeEnableKey)) + if (settings.GetOrDefault(SettingsKeys.PurgeEnableKey) == false) { diagnostics.Add("NServiceBus.Transport.SqlServer.ExpiredMessagesPurger", new {