MediaRetryPolicy.ExecuteAsync Method

Definition

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);
override this.ExecuteAsync : Func<System.Threading.Tasks.Task> -> System.Threading.Tasks.Task
Public Function ExecuteAsync (taskAction As Func(Of Task)) As Task

Parameters

taskAction
System.Func<System.Threading.Tasks.Task>

Returns

System.Threading.Tasks.Task

Applies to

ExecuteAsync(Func<Task>, CancellationToken)

public System.Threading.Tasks.Task ExecuteAsync (Func<System.Threading.Tasks.Task> taskAction, System.Threading.CancellationToken cancellationToken);
override this.ExecuteAsync : Func<System.Threading.Tasks.Task> * System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

taskAction
System.Func<System.Threading.Tasks.Task>
cancellationToken
System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task

Applies to

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

public System.Threading.Tasks.Task<TResult> ExecuteAsync<TResult> (Func<System.Threading.Tasks.Task<TResult>> taskFunc);
override 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

taskFunc
System.Func<System.Threading.Tasks.Task<TResult>>

Returns

System.Threading.Tasks.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);
override this.ExecuteAsync : Func<System.Threading.Tasks.Task<'Result>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<'Result>

Type Parameters

TResult

Parameters

taskFunc
System.Func<System.Threading.Tasks.Task<TResult>>
cancellationToken
System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task<TResult>

Applies to