Reputation: 63
We are using NServiceBus 6.4, and we've already disabled retries by setting the delayed and immediate to 0. However, when an exception is caught, are retry is still triggered. How can we completely disable retry even when there's an exception?
config.DisableFeature<TimeoutManager>();
recoverability.Delayed(delayed => { delayed.NumberOfRetries(0); });
recoverability.Immediate(immediate => { immediate.NumberOfRetries(0); });
Upvotes: 0
Views: 830
Reputation: 2178
Documentation on disabling retries can be found here:
It's exactly what you did. So it should not work anymore.
Upvotes: 1