Table of Contents

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

int

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

times int

The maximum number of retry attempts.

timeoutMs int

The timeout in milliseconds between retries.

operation Func<TResult>

The operation to execute.

Returns

TResult

Type Parameters

TResult

The return type of the operation.