Utilities.TryIOWithRetries(Action, Int32, TimeSpan, Boolean) 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.
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