Table of Contents

Class RetryInterceptor<T>

Namespace
DurableTask.Core
Assembly
DurableTask.Core.dll

Generic retry class to handle retries on a function call with specified retry options

public class RetryInterceptor<T>

Type Parameters

T

Type to return from the called Func

Inheritance
RetryInterceptor<T>
Inherited Members

Constructors

RetryInterceptor(OrchestrationContext, RetryOptions, Func<Task<T>>)

Creates a new instance of the RetryInterceptor with specified parameters

public RetryInterceptor(OrchestrationContext context, RetryOptions retryOptions, Func<Task<T>> retryCall)

Parameters

context OrchestrationContext

The orchestration context of the function call

retryOptions RetryOptions

The options for performing retries

retryCall Func<Task<T>>

The code to execute

Methods

Invoke()

Invokes the method/code to call and retries on exception based on the retry options

public Task<T> Invoke()

Returns

Task<T>

The return value of the supplied retry call

Exceptions

Exception

The final exception encountered if the call did not succeed