AMPS C# Client  5.3.5.0
AMPS C# Client for .NET
AMPS.Client.TransportDisconnectHandler Interface Reference

This class is used internally. Customers typically do not need to create their own implementations. This is used by the client's transport to notify the client of disconnection events. More...

+ Inheritance diagram for AMPS.Client.TransportDisconnectHandler:

Public Member Functions

void invoke (Transport transport, Exception e)
 Called by the Transport whenever the underlying socket is disconnected. More...
 
void preInvoke (int connectionVersion)
 Called before invoke by the transport with a monotonically increasing "connection version" integer that is incremented upon each reconnect. More...
 

Detailed Description

This class is used internally. Customers typically do not need to create their own implementations. This is used by the client's transport to notify the client of disconnection events.

Member Function Documentation

◆ invoke()

void AMPS.Client.TransportDisconnectHandler.invoke ( Transport  transport,
Exception  e 
)

Called by the Transport whenever the underlying socket is disconnected.

Parameters
transportThe calling transport that was disconnected.
eThe cause of the disconnect.

◆ preInvoke()

void AMPS.Client.TransportDisconnectHandler.preInvoke ( int  connectionVersion)

Called before invoke by the transport with a monotonically increasing "connection version" integer that is incremented upon each reconnect.

Parameters
connectionVersionThe integer that is incremented upon each reconnect.

Implemented in AMPS.Client.DefaultDisconnectHandler.


The documentation for this interface was generated from the following file: