Class SharedAlgorithms
- Namespace
- SunamoShared.Essential
- Assembly
- SunamoShared.dll
Provides shared algorithmic utility methods.
public class SharedAlgorithms
- Inheritance
-
SharedAlgorithms
- Inherited Members
- Extension Methods
Properties
LastError
Gets or sets the last HTTP error code encountered, or -1 if none.
public static int LastError { get; set; }
Property Value
Methods
RepeatAfterTimeXTimes<TResult>(int, int, Func<TResult>)
Repeats the specified operation up to the given number of times with a timeout between attempts.
public static TResult RepeatAfterTimeXTimes<TResult>(int times, int timeoutMs, Func<TResult> operation)
Parameters
timesintThe maximum number of retry attempts.
timeoutMsintThe timeout in milliseconds between retries.
operationFunc<TResult>The operation to execute.
Returns
- TResult
Type Parameters
TResultThe return type of the operation.