Compartir a través de


RetryPolicy.ExecuteAsync Método

Definición

Sobrecargas

ExecuteAsync(Func<Task>)
ExecuteAsync(Func<Task>, CancellationToken)
ExecuteAsync<TResult>(Func<Task<TResult>>)
ExecuteAsync<TResult>(Func<Task<TResult>>, CancellationToken)

ExecuteAsync(Func<Task>)

public System.Threading.Tasks.Task ExecuteAsync (Func<System.Threading.Tasks.Task> taskAction);
member this.ExecuteAsync : Func<System.Threading.Tasks.Task> -> System.Threading.Tasks.Task
Public Function ExecuteAsync (taskAction As Func(Of Task)) As Task

Parámetros

taskAction
Func<Task>

Devoluciones

Se aplica a

ExecuteAsync(Func<Task>, CancellationToken)

public System.Threading.Tasks.Task ExecuteAsync (Func<System.Threading.Tasks.Task> taskAction, System.Threading.CancellationToken cancellationToken);
member this.ExecuteAsync : Func<System.Threading.Tasks.Task> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ExecuteAsync (taskAction As Func(Of Task), cancellationToken As CancellationToken) As Task

Parámetros

taskAction
Func<Task>
cancellationToken
CancellationToken

Devoluciones

Se aplica a

ExecuteAsync<TResult>(Func<Task<TResult>>)

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

Parámetros de tipo

TResult

Parámetros

taskFunc
Func<Task<TResult>>

Devoluciones

Task<TResult>

Se aplica a

ExecuteAsync<TResult>(Func<Task<TResult>>, CancellationToken)

public System.Threading.Tasks.Task<TResult> ExecuteAsync<TResult> (Func<System.Threading.Tasks.Task<TResult>> taskFunc, System.Threading.CancellationToken cancellationToken);
member this.ExecuteAsync : Func<System.Threading.Tasks.Task<'Result>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>
Public Function ExecuteAsync(Of TResult) (taskFunc As Func(Of Task(Of TResult)), cancellationToken As CancellationToken) As Task(Of TResult)

Parámetros de tipo

TResult

Parámetros

taskFunc
Func<Task<TResult>>
cancellationToken
CancellationToken

Devoluciones

Task<TResult>

Se aplica a