C# 클래스 Examples.ControlClientSubscriptionControl

This demonstrates using a client to subscribe and unsubscribe other clients to topics. This uses the ISubscriptionControl feature.
파일 보기 프로젝트 열기: pushtechnology/diffusion-examples

공개 메소드들

메소드 설명
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