共用方式為


IRetryPolicyAdapter.AdaptExecuteAsync Method

Definition

Overloads

AdaptExecuteAsync(Func<Task>)
AdaptExecuteAsync<TResult>(Func<Task<TResult>>)

AdaptExecuteAsync(Func<Task>)

public Func<System.Threading.Tasks.Task> AdaptExecuteAsync (Func<System.Threading.Tasks.Task> taskFunc);
abstract member AdaptExecuteAsync : Func<System.Threading.Tasks.Task> -> Func<System.Threading.Tasks.Task>
Public Function AdaptExecuteAsync (taskFunc As Func(Of Task)) As Func(Of Task)

Parameters

taskFunc
Func<Task>

Returns

Applies to

AdaptExecuteAsync<TResult>(Func<Task<TResult>>)

public Func<System.Threading.Tasks.Task<TResult>> AdaptExecuteAsync<TResult> (Func<System.Threading.Tasks.Task<TResult>> taskFunc);
abstract member AdaptExecuteAsync : Func<System.Threading.Tasks.Task<'Result>> -> Func<System.Threading.Tasks.Task<'Result>>
Public Function AdaptExecuteAsync(Of TResult) (taskFunc As Func(Of Task(Of TResult))) As Func(Of Task(Of TResult))

Type Parameters

TResult

Parameters

taskFunc
Func<Task<TResult>>

Returns

Func<Task<TResult>>

Applies to