RetryPolicy.RunOperation(Func<Task>, TimeSpan) 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.
Runs a Func<T,TResult>, 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
A Func<T,TResult> to be executed.
- operationTimeout
- TimeSpan
The timeout for the entire operation.