Interface IReconnectRetryPolicy
- Namespace
- StackExchange.Redis
- Assembly
- StackExchange.Redis.StrongName.dll
Describes retry policy functionality that can be provided to the multiplexer to be used for connection reconnects
public interface IReconnectRetryPolicy
Methods
ShouldRetry(long, int)
This method is called by the multiplexer to determine if a reconnect operation can be retried now.
bool ShouldRetry(long currentRetryCount, int timeElapsedMillisecondsSinceLastRetry)
Parameters
currentRetryCount
longThe number of times reconnect retries have already been made by the multiplexer while it was in connecting state
timeElapsedMillisecondsSinceLastRetry
intTotal time elapsed in milliseconds since the last reconnect retry was made