an NServiceBus extension that provides recoverability customizations for the recoverability behavior of individual handlers via attributes.
Use the ImmediateRetries
, DelayedRetries
, and ErrorQueue
attributes on a class that implements IHandleMessages<T>
to customize the recoverability behavior in case the handler fails throws an exception, e.g.
[ImmediateRetries(1)]
[DelayedRetries(1, "0:00:10")]
[ErrorQueue("demo-error")]
public class Handler1 : IHandleMessages<DemoMessage>
{
// ...
}
See the DemoEndpoint
project in this repository for a simple demo.