Class SessionState
Represents the state of the session.
Inherited Members
Namespace: PushTechnology.ClientInterface.Client.Session
Assembly: Diffusion.Client.dll
Syntax
public class SessionState : AdvancedEnum<SessionState>
Fields
CLOSE_FAILED
The session has lost its connection to a server and could not be recovered.
Declaration
public static readonly SessionState CLOSE_FAILED
Field Value
Type | Description |
---|---|
SessionState |
CLOSED_BY_CLIENT
The session has been closed by the client.
Declaration
public static readonly SessionState CLOSED_BY_CLIENT
Field Value
Type | Description |
---|---|
SessionState |
CLOSED_BY_SERVER
The session has been closed (or rejected) by the server.
Declaration
public static readonly SessionState CLOSED_BY_SERVER
Field Value
Type | Description |
---|---|
SessionState |
CONNECTED_ACTIVE
There is an active connection with a server.
Declaration
public static readonly SessionState CONNECTED_ACTIVE
Field Value
Type | Description |
---|---|
SessionState |
CONNECTING
The session is establishing its initial connection.
Declaration
public static readonly SessionState CONNECTING
Field Value
Type | Description |
---|---|
SessionState |
CONNECTION_ATTEMPT_FAILED
The attempt to establish a connection to a server has failed.
Declaration
public static readonly SessionState CONNECTION_ATTEMPT_FAILED
Field Value
Type | Description |
---|---|
SessionState |
RECOVERING_RECONNECT
Connection with a server has been lost and the session is attempting reconnection to the same server.
Declaration
public static readonly SessionState RECOVERING_RECONNECT
Field Value
Type | Description |
---|---|
SessionState |
Properties
Closed
Returns the 'closed' state.
Declaration
public bool Closed { get; }
Property Value
Type | Description |
---|---|
Boolean |
Connected
Returns the 'connected' state.
Declaration
public bool Connected { get; }
Property Value
Type | Description |
---|---|
Boolean |
Recovering
Returns the 'recovering' state.
Declaration
public bool Recovering { get; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string that represents the current object. |
Overrides
PushTechnology.DiffusionCore.AdvancedEnum<PushTechnology.ClientInterface.Client.Session.SessionState>.ToString()