Skip to content

RecordedConnectionIssue Methods

Utility class for recording connection issues. It is public, not internal, because it is a useful building block for implementing other consistency providers.

DelayBeforeRetry

View source
public readonly Task DelayBeforeRetry()
delays if there was an issue in last attempt, for the duration specified by the retry delay

Record(ConnectionIssue, IConnectionIssueListener, ILogConsistencyProtocolServices)

View source
public void Record(ConnectionIssue newIssue, IConnectionIssueListener listener, ILogConsistencyProtocolServices services)
record a connection issue, filling in timestamps etc. and notify the listener

Parameters

newIssueConnectionIssue
the connection issue to be recorded
listenerIConnectionIssueListener
the listener for connection issues
servicesILogConsistencyProtocolServices
for reporting exceptions in listener

Resolve(IConnectionIssueListener, ILogConsistencyProtocolServices)

View source
public void Resolve(IConnectionIssueListener listener, ILogConsistencyProtocolServices services)
if there is a recorded issue, notify listener and clear it.

Parameters

listenerIConnectionIssueListener
the listener for connection issues
servicesILogConsistencyProtocolServices
for reporting exceptions in listener

ToString

override
View source
public override readonly string ToString()
Returns the fully qualified type name of this instance.

Returns

The fully qualified type name.