C# Class Tempest.TempestClient

Tempest clients.
Inheritance: MessageHandler, IClientContext, INotifyPropertyChanged
Exibir arquivo Open project: ermau/Tempest

Public Methods

Method Description
ConnectAsync ( Target target ) : Task

Attempts to asynchronously connect to target.

DisconnectAsync ( ) : Task

Disconnects from the server.

DisconnectAsync ( ConnectionResult reason, string customReason = null ) : Task
TempestClient ( IClientConnection connection, MessageTypes mtypes ) : System

Protected Methods

Method Description
OnConnected ( ClientConnectionEventArgs e ) : void
OnDisconnected ( ClientDisconnectedEventArgs e ) : void
OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Private Methods

Method Description
ConnectionOnMessageReceived ( object sender, MessageEventArgs e ) : void
DisconnectAsyncCore ( ConnectionResult reason, string customReason ) : Task
MessageRunner ( ) : void
OnConnectionConnected ( object sender, ClientConnectionEventArgs e ) : void
OnConnectionDisconnected ( object sender, Tempest.DisconnectedEventArgs e ) : void

Method Details

ConnectAsync() public method

Attempts to asynchronously connect to target.
is null.
public ConnectAsync ( Target target ) : Task
target Target The target to connect to.
return Task

DisconnectAsync() public method

Disconnects from the server.
public DisconnectAsync ( ) : Task
return Task

DisconnectAsync() public method

public DisconnectAsync ( ConnectionResult reason, string customReason = null ) : Task
reason ConnectionResult
customReason string
return Task

OnConnected() protected method

protected OnConnected ( ClientConnectionEventArgs e ) : void
e ClientConnectionEventArgs
return void

OnDisconnected() protected method

protected OnDisconnected ( ClientDisconnectedEventArgs e ) : void
e ClientDisconnectedEventArgs
return void

OnPropertyChanged() protected method

protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs
return void

TempestClient() public method

public TempestClient ( IClientConnection connection, MessageTypes mtypes ) : System
connection IClientConnection
mtypes MessageTypes
return System