Table of Contents

Interface IRetryable<TSelf>

Namespace
DynaSharp
Assembly
DynaSharp.dll

A command that takes per-call options of the retry loop, for a helper that works on all of them, see IConditional<TSelf>.

public interface IRetryable<TSelf> where TSelf : IRetryable<TSelf>, allows ref struct

Type Parameters

TSelf

The command.

Methods

MaxAttempts(int)

Sets the number of attempts of this call including the first, in place of MaxAttempts. A retry after a lost response repeats a write that may have been applied, so 1 makes an ADD count at most once, and a lost response then reports a failure after the write was applied.

TSelf MaxAttempts(int attempts)

Parameters

attempts int

The number of attempts.

Returns

TSelf

The command, which replaces this one.

Exceptions

ArgumentOutOfRangeException

attempts is below 1.