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

Name Description
TaskRetryOptions(AsyncRetryHandler)

Initializes a new instance of the TaskRetryOptions class.

TaskRetryOptions(RetryPolicy)

Initializes a new instance of the TaskRetryOptions class.

Properties

Name Description
Handler

Gets the retry handler. null if Policy is set.

Policy

Gets the retry policy. null if Handler is set.

Methods

Name Description
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

Name Description
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