C# Class Gwupe.Cloud.Communication.ConnectionMaintainer

ファイルを表示 Open project: gwupe/Gwupe Class Usage Examples

Public Properties

Property Type Description
ConnectionCloseEvent System.Threading.AutoResetEvent
ConnectionOpenEvent System.Threading.AutoResetEvent
WakeupManager System.Threading.AutoResetEvent

Private Properties

Property Type Description
CloseConnection void
IsConnected bool

Public Methods

Method Description
Connect ( Uri uri ) : void
ConnectionMaintainer ( String version, List destinations, List ports, X509Certificate2 cert ) : System
Disconnect ( ) : void
IsConnectionEstablished ( ) : bool
ManualBreak ( string reason ) : void
Ping ( ) : bool
Run ( ) : void

Protected Methods

Method Description
OnConnect ( EventArgs e ) : void
OnDisconnect ( EventArgs e ) : void

Private Methods

Method Description
CloseConnection ( int code, String reason ) : void
IsConnected ( ) : bool

Method Details

Connect() public method

public Connect ( Uri uri ) : void
uri System.Uri
return void

ConnectionMaintainer() public method

public ConnectionMaintainer ( String version, List destinations, List ports, X509Certificate2 cert ) : System
version String
destinations List
ports List
cert System.Security.Cryptography.X509Certificates.X509Certificate2
return System

Disconnect() public method

public Disconnect ( ) : void
return void

IsConnectionEstablished() public method

public IsConnectionEstablished ( ) : bool
return bool

ManualBreak() public method

public ManualBreak ( string reason ) : void
reason string
return void

OnConnect() protected method

protected OnConnect ( EventArgs e ) : void
e System.EventArgs
return void

OnDisconnect() protected method

protected OnDisconnect ( EventArgs e ) : void
e System.EventArgs
return void

Ping() public method

public Ping ( ) : bool
return bool

Run() public method

public Run ( ) : void
return void

Property Details

ConnectionCloseEvent public_oe property

public AutoResetEvent,System.Threading ConnectionCloseEvent
return System.Threading.AutoResetEvent

ConnectionOpenEvent public_oe property

public AutoResetEvent,System.Threading ConnectionOpenEvent
return System.Threading.AutoResetEvent

WakeupManager public_oe property

public AutoResetEvent,System.Threading WakeupManager
return System.Threading.AutoResetEvent