Table of Contents

Class RetryHelper

Namespace
Dynamicweb.DataIntegration.Providers.ODataProvider.Model
Assembly
Dynamicweb.DataIntegration.dll
public static class RetryHelper
Inheritance
RetryHelper
Inherited Members

Methods

RetryOnExceptionAsync<TException>(int, Func<CancellationToken, Task>, ILogger?, CancellationToken)

public static Task RetryOnExceptionAsync<TException>(int maxRetryAttempts, Func<CancellationToken, Task> operation, ILogger? logger, CancellationToken cancellationToken) where TException : Exception

Parameters

maxRetryAttempts int
operation Func<CancellationToken, Task>
logger ILogger
cancellationToken CancellationToken

Returns

Task

Type Parameters

TException

RetryOnExceptionAsync<TException>(int, Func<Task>, ILogger?)

public static Task RetryOnExceptionAsync<TException>(int maxRetryAttempts, Func<Task> operation, ILogger? logger) where TException : Exception

Parameters

maxRetryAttempts int
operation Func<Task>
logger ILogger

Returns

Task

Type Parameters

TException
To top