Getting Started
Architecture
NServiceBus
Transports
Persistence
ServiceInsight
ServicePulse
ServiceControl
Monitoring
Samples

Configure immediate retries

Component: NServiceBus
NuGet Package: NServiceBus (9.1)

Configuring

  • NumberOfRetries: Number of times Immediate Retries are performed. Default: 5.
var recoverability = endpointConfiguration.Recoverability();
recoverability.Immediate(
    immediate =>
    {
        immediate.NumberOfRetries(3);
    });

Disabling

var recoverability = endpointConfiguration.Recoverability();
recoverability.Immediate(
    immediate =>
    {
        immediate.NumberOfRetries(0);
    });

Samples