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
TimeSpanThe remaining time before the timeout expires.
currentRetryCount
intThe number of attempts that have been processed.
retryInterval
TimeSpanThe amount of time to delay before retry.