C# Класс Examples.ControlClientUsingSessionProperties

This is an example of a control client using both the client control and the subscription control feature to monitor and subscribe clients. The example shows a control client that wants all clients that are in Italy and are in the 'Accounts' department (determined by an additional property) to be subscribed to the 'ITAccounts' topic. It also has a method which makes use of filtered subscription to change the topic that all matching clients are subscribed to.
Показать файл Открыть проект

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

Метод Описание
ChangeTopic ( string topic ) : void

This can be used to change the topic that all of the Italian accounts department is subscribed to. It will unsubscribe all current clients from the old topic and subscribe them to the new one. All new clients will be subscribed to the new one.

Close ( ) : void

Close the session.

ControlClientUsingSessionProperties ( ) : System.Collections.Generic

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

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

This can be used to change the topic that all of the Italian accounts department is subscribed to. It will unsubscribe all current clients from the old topic and subscribe them to the new one. All new clients will be subscribed to the new one.
public ChangeTopic ( string topic ) : void
topic string
Результат void

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

Close the session.
public Close ( ) : void
Результат void

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

public ControlClientUsingSessionProperties ( ) : System.Collections.Generic
Результат System.Collections.Generic