timbussmann / NServiceBus.Community.RecoverabilityExtensions

Additional recoverability configuration options for NServiceBus endpoints

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NServiceBus.Community.RecoverabilityExtensions

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.

About

Additional recoverability configuration options for NServiceBus endpoints

License:MIT License


Languages

Language:C# 100.0%