C# Class 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.
Exibir arquivo Open project: pushtechnology/diffusion-examples

Public Methods

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

Method Details

ChangeTopic() public method

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

Close() public method

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

ControlClientUsingSessionProperties() public method

public ControlClientUsingSessionProperties ( ) : System.Collections.Generic
return System.Collections.Generic