C# 클래스 Tempest.TempestClient

Tempest clients.
상속: MessageHandler, IClientContext, INotifyPropertyChanged
파일 보기 프로젝트 열기: ermau/Tempest

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
OnConnected ( ClientConnectionEventArgs e ) : void
OnDisconnected ( ClientDisconnectedEventArgs e ) : void
OnPropertyChanged ( PropertyChangedEventArgs e ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

ConnectAsync() 공개 메소드

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

DisconnectAsync() 공개 메소드

Disconnects from the server.
public DisconnectAsync ( ) : Task
리턴 Task

DisconnectAsync() 공개 메소드

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

OnConnected() 보호된 메소드

protected OnConnected ( ClientConnectionEventArgs e ) : void
e ClientConnectionEventArgs
리턴 void

OnDisconnected() 보호된 메소드

protected OnDisconnected ( ClientDisconnectedEventArgs e ) : void
e ClientDisconnectedEventArgs
리턴 void

OnPropertyChanged() 보호된 메소드

protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs
리턴 void

TempestClient() 공개 메소드

public TempestClient ( IClientConnection connection, MessageTypes mtypes ) : System
connection IClientConnection
mtypes MessageTypes
리턴 System