Table of Contents

Interface IReconnectionAttempt

Namespace
PushTechnology.ClientInterface.Client.Session.Reconnection
Assembly
Diffusion.Client.dll

A single reconnection attempt that can either be started or aborted.

public interface IReconnectionAttempt

Properties

Attempt

Returns the reconnection attempt number.

int Attempt { get; }

Property Value

int

The attempt number. The first attempt is 1.

Remarks

On the first reconnection attempt after a disconnection this will be set to 1 and will be incremented by 1 for each subsequent attempt.

Since 6.13.

Methods

Abort()

Aborts the reconnection attempt.

void Abort()

Remarks

This method always throws a System.InvalidOperationException. Since 6.13, the attempt is aborted whether or not the strategy catches the exception, and an attempt that has already been started is not aborted.

Exceptions

InvalidOperationException

The reconnection attempt has been aborted.

Start()

Starts the reconnection attempt.

void Start()

Remarks

Since 6.13, this method does not throw. The session handles the outcome: it retries a failed attempt, and it closes when the server or an HTTP redirect rejects the reconnection. It does nothing if the attempt has been started or aborted, or if the session is not reconnecting.