C# Класс GlowCommon.AppConnectionManager

Наследование: IDiscoveryServerListener, ICommandServerListener
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
IsConnected bool

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CreateDiscoveryPingTimmer ( ) : void

Used to create a tick timer for the broadcast pinger

DestoryDiscoverPingTimer ( ) : void

Used to stop the timer for the ping timer.

Описание методов

AppConnectionManager() публичный Метод

public AppConnectionManager ( ) : GlowCommon.Interfaces
Результат GlowCommon.Interfaces

OnClientFound() публичный Метод

Called when a server is found! Try to connect.
public OnClientFound ( string ipAddress ) : void
ipAddress string
Результат void

OnCommand() публичный Метод

Fired when the server sends a command
public OnCommand ( Command command ) : Command
command GlowCommon.DataObjects.Command
Результат GlowCommon.DataObjects.Command

OnConnect() публичный Метод

Fired when a new server connection has been made
public OnConnect ( ) : void
Результат void

OnDisconnected() публичный Метод

Fired when a server connection has been lost
public OnDisconnected ( ) : void
Результат void

OnFatalError() публичный Метод

Fired when there has been an error we can't recover from.
public OnFatalError ( ) : void
Результат void

SendCommand() публичный Метод

Called by the consumer when they want to send a message to the other side.
public SendCommand ( Command cmd ) : Task
cmd GlowCommon.DataObjects.Command
Результат Task

Описание свойств

IsConnected публичное свойство

Indicates if we are connected or not.
public bool IsConnected
Результат bool