C# Class Examples.ControlClientUpdatingTopic

An example of using a control client to create and update a topic in non-exclusive mode (as opposed to acting as an exclusive update source). In this mode other clients could update the same topic (on a 'last update wins' basis). This uses the ITopicControl feature to create a topic and the ITopicUpdateControl feature to send updates to it. To send updates to a topic, the client session requires the 'update_topic' permission for that branch of the topic tree.
显示文件 Open project: pushtechnology/diffusion-examples

Public Methods

Method Description
Close ( ) : void

Close the session.

ControlClientUpdatingTopic ( ) : PushTechnology.ClientInterface.Client.Factories

Constructor.

Update ( string value, ITopicUpdaterUpdateCallback callback ) : void

Update the topic with a string value.

Method Details

Close() public method

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

ControlClientUpdatingTopic() public method

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

Update() public method

Update the topic with a string value.
public Update ( string value, ITopicUpdaterUpdateCallback callback ) : void
value string The update value.
callback ITopicUpdaterUpdateCallback The update callback.
return void