Click or drag to resize

RetryPolicyBaseInvokeAsyncTResult Method (FuncTaskTResult)

Retries an asynchronous action that returns TResult when it throws exceptions due to transient errors. he classification of what is a transient error, the interval between the retries as well as the number of times the operation are retried are determined by the policy implementation.

Namespace:  Neon.Retry
Assembly:  Neon.Common (in Neon.Common.dll) Version: 2.14.0
Syntax
public abstract Task<TResult> InvokeAsync<TResult>(
	Func<Task<TResult>> action
)

Parameters

action
Type: SystemFuncTaskTResult
The asynchronous action to be performed.

Type Parameters

TResult
The action result type.

Return Value

Type: TaskTResult
The action result.

Implements

IRetryPolicyInvokeAsyncTResult(FuncTaskTResult)
See Also