Свойство | Type | Description | |
---|---|---|---|
BackendSocket | Socket | ||
FrontendSocket | Socket |
Méthode | Description | |
---|---|---|
Close ( ) : void |
Stop the device and safely terminate the underlying sockets.
|
|
Dispose ( ) : void |
Releases all resources used by the current instance, including the frontend and backend sockets.
|
|
Initialize ( ) : void |
Initializes the frontend and backend sockets. Called automatically when starting the device. If called multiple times, will only execute once.
|
|
Join ( System.TimeSpan timeout ) : bool |
Blocks the calling thread until the device terminates or the specified time elapses.
|
|
Join ( ) : void |
Blocks the calling thread until the device terminates.
|
|
Start ( ) : void |
Start the device in the current thread.
|
|
Stop ( ) : void |
Stop the device in such a way that it can be restarted.
|
Méthode | Description | |
---|---|---|
BackendHandler ( SocketEventArgs args ) : void |
Invoked when a message has been received by the backend socket.
|
|
Device ( Socket frontendSocket, Socket backendSocket, DeviceMode mode ) : System |
Initializes a new instance of the Device class.
|
|
Dispose ( bool disposing ) : void |
Stops the device and releases the underlying sockets. Optionally disposes of managed resources.
|
|
FrontendHandler ( SocketEventArgs args ) : void |
Invoked when a message has been received by the frontend socket.
|
|
Run ( ) : void |
Start the device in the current thread. Should be used by implementations of the DeviceRunner.Start method. Initializes the sockets prior to starting the device with Initialize. |
Méthode | Description | |
---|---|---|
EnsureNotDisposed ( ) : void |
protected abstract BackendHandler ( SocketEventArgs args ) : void | ||
args | SocketEventArgs | A |
Résultat | void |
protected Device ( Socket frontendSocket, Socket backendSocket, DeviceMode mode ) : System | ||
frontendSocket | Socket |
/// A |
backendSocket | Socket |
/// A |
mode | DeviceMode | The |
Résultat | System |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Résultat | void |
protected abstract FrontendHandler ( SocketEventArgs args ) : void | ||
args | SocketEventArgs | A |
Résultat | void |
public Join ( System.TimeSpan timeout ) : bool | ||
timeout | System.TimeSpan |
/// A |
Résultat | bool |