C# Class Examples.ControlClientSubscriptionControl

This demonstrates using a client to subscribe and unsubscribe other clients to topics. This uses the ISubscriptionControl feature.
Mostra file Open project: pushtechnology/diffusion-examples

Public Methods

Method Description
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.

Method Details

Close() public method

Close the session.
public Close ( ) : void
return void

ControlClientSubscriptionControl() public method

Constructor.
public ControlClientSubscriptionControl ( ) : PushTechnology.ClientInterface.Client.Factories
return PushTechnology.ClientInterface.Client.Factories

Subscribe() public method

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.
return void

Unsubscribe() public method

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.
return void