RetryPolicy Class
Definition
Represents an abstraction for retrying messaging operations. Users should not implement this class, and instead should use one of the provided implementations.
public abstract class RetryPolicy
type RetryPolicy = class
Public MustInherit Class RetryPolicy
- Inheritance
-
RetryPolicy
- Derived
Constructors
RetryPolicy() |
Properties
Default |
Returns the default retry policy, RetryExponential. |
IsServerBusy |
Determines whether or not the server returned a busy error. |
ServerBusyExceptionMessage |
Gets the exception message when a server busy error is returned. |
Methods
IsRetryableException(Exception) |
Determines whether or not the exception can be retried. |
OnShouldRetry(TimeSpan, Int32, TimeSpan) | |
RunOperation(Func<Task>, TimeSpan) |
Runs a Func<T, TResult>, using the current RetryPolicy. |