C# Class Examples.ControlClientSubscriptionControl

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

Méthodes publiques

Méthode 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 méthode

Close the session.
public Close ( ) : void
Résultat void

ControlClientSubscriptionControl() public méthode

Constructor.
public ControlClientSubscriptionControl ( ) : PushTechnology.ClientInterface.Client.Factories
Résultat PushTechnology.ClientInterface.Client.Factories

Subscribe() public méthode

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.
Résultat void

Unsubscribe() public méthode

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.
Résultat void