C# Класс Examples.ControlClientSubscriptionControl

This demonstrates using a client to subscribe and unsubscribe other clients to topics. This uses the ISubscriptionControl feature.
Показать файл Открыть проект

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

Метод Описание
Close ( ) : void

Close the session.

ControlClientSubscriptionControl ( ) : PushTechnology.ClientInterface.Client.Factories

Constructor.

Subscribe ( SessionId sessionId, string topicSelector, ISubscriptionCallback callback ) : void

Subscribe a client to topics.

Unsubscribe ( SessionId sessionId, string topicSelector, ISubscriptionCallback callback ) : void

Unsubscribe a client from topics.

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

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

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

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

Constructor.
public ControlClientSubscriptionControl ( ) : PushTechnology.ClientInterface.Client.Factories
Результат PushTechnology.ClientInterface.Client.Factories

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

Subscribe a client to topics.
public Subscribe ( SessionId sessionId, string topicSelector, ISubscriptionCallback callback ) : void
sessionId SessionId The session id of the client to subscribe.
topicSelector string The topic selector expression.
callback ISubscriptionCallback The callback for the subscription result.
Результат void

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

Unsubscribe a client from topics.
public Unsubscribe ( SessionId sessionId, string topicSelector, ISubscriptionCallback callback ) : void
sessionId SessionId The session id of the client to unsubscribe.
topicSelector string The topic selector expression.
callback ISubscriptionCallback The callback for the unsubscription result.
Результат void