Table of Contents

Class NoRetry

Namespace
Microsoft.Azure.ServiceBus
Assembly
Microsoft.Azure.ServiceBus.dll

A retry policy, which does not actually retry.

public sealed class NoRetry : RetryPolicy
Inheritance
NoRetry
Inherited Members

Remarks

Use this if you want all Service Bus exceptions to be handled by user code.

Constructors

NoRetry()

public NoRetry()

Methods

OnShouldRetry(TimeSpan, int, out TimeSpan)

Called to see if a retry should be performed.

protected override bool OnShouldRetry(TimeSpan remainingTime, int currentRetryCount, out TimeSpan retryInterval)

Parameters

remainingTime TimeSpan

The remaining time before the timeout expires.

currentRetryCount int

The number of attempts that have been processed.

retryInterval TimeSpan

The amount of time to delay before retry.

Returns

bool