RetryPolicy.ExecuteAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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
Parameters
Returns
Applies to
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
Parameters
- cancellationToken
- CancellationToken
Returns
Applies to
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)
Type Parameters
- TResult
Parameters
Returns
Task<TResult>
Applies to
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)
Type Parameters
- TResult
Parameters
- cancellationToken
- CancellationToken
Returns
Task<TResult>
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.