C# Class Ultralight.Client.StompClient

Ultra simple STOMP client with command buffering support
Inheritance: IDisposable
Mostra file Open project: ernstnaezer/ultralight Class Usage Examples

Public Methods

Method Description
Connect ( ) : void

Connects to the server on the specified address.

Disconnect ( ) : void

Disconnects this instance.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Send ( string address, string message ) : void

Sends a message to the specified address.

Send ( string address, string message, string receiptId ) : void

Sends a message to the specified address.

StompClient ( ITransport transport ) : System

Initializes a new instance of the StompClient class.

Subscribe ( string destination ) : void

Subscribes to the specified destination.

Unsubscribe ( string destination ) : void

Unsubscribes the specified destination.

Private Methods

Method Description
ExecuteWhenConnected ( System.Action command ) : void

Executes the given action when the client is connected to the server, otherwise store it for later use.

HandleMessage ( StompMessage message ) : void

Dispatches the given message to a registerd message consumer.

OnStompConnected ( StompMessage obj ) : void

Called when [connected] received.

Method Details

Connect() public method

Connects to the server on the specified address.
public Connect ( ) : void
return void

Disconnect() public method

Disconnects this instance.
public Disconnect ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Send() public method

Sends a message to the specified address.
public Send ( string address, string message ) : void
address string The address.
message string The message.
return void

Send() public method

Sends a message to the specified address.
public Send ( string address, string message, string receiptId ) : void
address string The address.
message string The message.
receiptId string The receipt id.
return void

StompClient() public method

Initializes a new instance of the StompClient class.
public StompClient ( ITransport transport ) : System
transport ITransport The transport channel.
return System

Subscribe() public method

Subscribes to the specified destination.
public Subscribe ( string destination ) : void
destination string The destination.
return void

Unsubscribe() public method

Unsubscribes the specified destination.
public Unsubscribe ( string destination ) : void
destination string The destination.
return void