Utilities.TryIOWithRetries(Action, Int32, TimeSpan, Boolean) Method

Definition

Helper to perform an IO operation with retries.

public static bool TryIOWithRetries (Action operation, int numRetries, TimeSpan sleepBetweenRetries, bool throwOnLastRetry = false);
static member TryIOWithRetries : Action * int * TimeSpan * bool -> bool
Public Function TryIOWithRetries (operation As Action, numRetries As Integer, sleepBetweenRetries As TimeSpan, Optional throwOnLastRetry As Boolean = false) As Boolean

Parameters

operation
Action
numRetries
Int32
sleepBetweenRetries
TimeSpan
throwOnLastRetry
Boolean

Returns

Boolean

Applies to