RetryPolicy.RunOperation(Func<Task>, TimeSpan) Method

Definition

Runs a System.Func`2, using the current RetryPolicy.

public System.Threading.Tasks.Task RunOperation (Func<System.Threading.Tasks.Task> operation, TimeSpan operationTimeout);
member this.RunOperation : Func<System.Threading.Tasks.Task> * TimeSpan -> System.Threading.Tasks.Task
Public Function RunOperation (operation As Func(Of Task), operationTimeout As TimeSpan) As Task

Parameters

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

A System.Func`2 to be executed.

operationTimeout
System.TimeSpan

The timeout for the entire operation.

Returns

System.Threading.Tasks.Task

Applies to