TaskRetryOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Task retry options. Can provide either a RetryPolicy for declarative retry or a AsyncRetryHandler for imperative retry control.
public sealed class TaskRetryOptions
type TaskRetryOptions = class
Public NotInheritable Class TaskRetryOptions
- Inheritance
-
TaskRetryOptions
Constructors
TaskRetryOptions(AsyncRetryHandler) |
Initializes a new instance of the TaskRetryOptions class. |
TaskRetryOptions(RetryPolicy) |
Initializes a new instance of the TaskRetryOptions class. |
Properties
Handler |
Gets the retry handler. |
Policy |
Gets the retry policy. |
Methods
FromRetryHandler(AsyncRetryHandler) |
Returns a new TaskRetryOptions from the provided AsyncRetryHandler. |
FromRetryHandler(RetryHandler) |
Returns a new TaskRetryOptions from the provided RetryHandler. |
FromRetryPolicy(RetryPolicy) |
Returns a new TaskRetryOptions from the provided RetryPolicy. |
Operators
Implicit(AsyncRetryHandler to TaskRetryOptions) |
Returns a new TaskRetryOptions from the provided AsyncRetryHandler. |
Implicit(RetryHandler to TaskRetryOptions) |
Returns a new TaskRetryOptions from the provided RetryHandler. |
Implicit(RetryPolicy to TaskRetryOptions) |
Returns a new TaskRetryOptions from the provided RetryPolicy. |