Share via


TaskRetryOptions Class

Definition

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. null if Policy is set.

Policy

Gets the retry policy. null if Handler is set.

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.

Applies to