C# Class Animatroller.ExpanderCommunication.ClientConnectionManager

Inheritance: BaseConnectionManager, IDisposable
Show file Open project: HakanL/animatroller

Public Methods

Method Description
ClientConnectionManager ( string serverName, int serverPort, string hostId ) : System
Dispose ( ) : void
SendToServerAsync ( object payload ) : Task
SetPayloadReceivedAction ( Action payloadReceivedAction ) : void

Private Methods

Method Description
ConnectorWorker ( CancellationToken cancelToken ) : Task
SendConnectMessageAsync ( ) : Task
SendToServerAsync ( Model message ) : Task
Socket_DataReceived ( IAsyncResult result ) : void

Method Details

ClientConnectionManager() public method

public ClientConnectionManager ( string serverName, int serverPort, string hostId ) : System
serverName string
serverPort int
hostId string
return System

Dispose() public method

public Dispose ( ) : void
return void

SendToServerAsync() public method

public SendToServerAsync ( object payload ) : Task
payload object
return Task

SetPayloadReceivedAction() public method

public SetPayloadReceivedAction ( Action payloadReceivedAction ) : void
payloadReceivedAction Action
return void