C# Класс Ultralight.Client.StompClient

Ultra simple STOMP client with command buffering support
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Connect() публичный Метод

Connects to the server on the specified address.
public Connect ( ) : void
Результат void

Disconnect() публичный Метод

Disconnects this instance.
public Disconnect ( ) : void
Результат void

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Send() публичный Метод

Sends a message to the specified address.
public Send ( string address, string message ) : void
address string The address.
message string The message.
Результат void

Send() публичный Метод

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.
Результат void

StompClient() публичный Метод

Initializes a new instance of the StompClient class.
public StompClient ( ITransport transport ) : System
transport ITransport The transport channel.
Результат System

Subscribe() публичный Метод

Subscribes to the specified destination.
public Subscribe ( string destination ) : void
destination string The destination.
Результат void

Unsubscribe() публичный Метод

Unsubscribes the specified destination.
public Unsubscribe ( string destination ) : void
destination string The destination.
Результат void