C# Class GlowCommon.AppConnectionManager

Inheritance: IDiscoveryServerListener, ICommandServerListener
Afficher le fichier Open project: QuinnDamerell/Glow Class Usage Examples

Méthodes publiques

Свойство Type Description
IsConnected bool

Méthodes publiques

Méthode Description
AppConnectionManager ( ) : GlowCommon.Interfaces
OnClientFound ( string ipAddress ) : void

Called when a server is found! Try to connect.

OnCommand ( Command command ) : Command

Fired when the server sends a command

OnConnect ( ) : void

Fired when a new server connection has been made

OnDisconnected ( ) : void

Fired when a server connection has been lost

OnFatalError ( ) : void

Fired when there has been an error we can't recover from.

SendCommand ( Command cmd ) : Task

Called by the consumer when they want to send a message to the other side.

Private Methods

Méthode Description
CreateDiscoveryPingTimmer ( ) : void

Used to create a tick timer for the broadcast pinger

DestoryDiscoverPingTimer ( ) : void

Used to stop the timer for the ping timer.

Method Details

AppConnectionManager() public méthode

public AppConnectionManager ( ) : GlowCommon.Interfaces
Résultat GlowCommon.Interfaces

OnClientFound() public méthode

Called when a server is found! Try to connect.
public OnClientFound ( string ipAddress ) : void
ipAddress string
Résultat void

OnCommand() public méthode

Fired when the server sends a command
public OnCommand ( Command command ) : Command
command GlowCommon.DataObjects.Command
Résultat GlowCommon.DataObjects.Command

OnConnect() public méthode

Fired when a new server connection has been made
public OnConnect ( ) : void
Résultat void

OnDisconnected() public méthode

Fired when a server connection has been lost
public OnDisconnected ( ) : void
Résultat void

OnFatalError() public méthode

Fired when there has been an error we can't recover from.
public OnFatalError ( ) : void
Résultat void

SendCommand() public méthode

Called by the consumer when they want to send a message to the other side.
public SendCommand ( Command cmd ) : Task
cmd GlowCommon.DataObjects.Command
Résultat Task

Property Details

IsConnected public_oe property

Indicates if we are connected or not.
public bool IsConnected
Résultat bool