C# Class Examples.ControlClientUpdatingPagedTopics

An example of using a control client to create and update paged topics. This uses the ITopicControl feature to create a paged topic and the ITopicUpdateControl feature to send updates to it. This demonstrates some simple examples of paged topic updates but not all of the possible ways in which they can be done. 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
AddOrdered ( string name, string address, ITopicUpdaterUpdateCallback callback ) : void

Add a new line from an ordered topic.

AddUnordered ( ICollection values, ITopicUpdaterUpdateCallback callback ) : void

Add a line or lines to the end of an unordered topic.

Close ( ) : void

Close the session.

ControlClientUpdatingPagedTopics ( ) : System

Constructor.

InsertUnordered ( int index, ICollection values, ITopicUpdaterUpdateCallback callback ) : void

Insert a line or lines at a specified index within an unordered topic.

RemoveOrdered ( string name, ITopicUpdaterUpdateCallback callback ) : void

Remove a line from an ordered topic.

RemoveUnordered ( int index, ITopicUpdaterUpdateCallback callback ) : void

Remove a specific line from an unordered topic.

UpdateOrdered ( string name, string address, ITopicUpdaterUpdateCallback callback ) : void

Update a line of an ordered topic.

UpdateUnordered ( int index, string value, ITopicUpdaterUpdateCallback callback ) : void

Update a line within an unordered topic.

Private Methods

Method Description
Update ( string topic, IUpdate update, ITopicUpdaterUpdateCallback callback ) : void

Method Details

AddOrdered() public method

Add a new line from an ordered topic.
public AddOrdered ( string name, string address, ITopicUpdaterUpdateCallback callback ) : void
name string The name field value.
address string The address field value.
callback ITopicUpdaterUpdateCallback The callback to notify the result.
return void

AddUnordered() public method

Add a line or lines to the end of an unordered topic.
public AddUnordered ( ICollection values, ITopicUpdaterUpdateCallback callback ) : void
values ICollection The lines to add.
callback ITopicUpdaterUpdateCallback The callback to notify the result.
return void

Close() public method

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

ControlClientUpdatingPagedTopics() public method

Constructor.
public ControlClientUpdatingPagedTopics ( ) : System
return System

InsertUnordered() public method

Insert a line or lines at a specified index within an unordered topic.
public InsertUnordered ( int index, ICollection values, ITopicUpdaterUpdateCallback callback ) : void
index int The index at which to add the line.
values ICollection The lines to insert.
callback ITopicUpdaterUpdateCallback The callback to notify the result.
return void

RemoveOrdered() public method

Remove a line from an ordered topic.
public RemoveOrdered ( string name, ITopicUpdaterUpdateCallback callback ) : void
name string The name of the line to remove.
callback ITopicUpdaterUpdateCallback The callback to notify the result.
return void

RemoveUnordered() public method

Remove a specific line from an unordered topic.
public RemoveUnordered ( int index, ITopicUpdaterUpdateCallback callback ) : void
index int The index of the line to remove.
callback ITopicUpdaterUpdateCallback The callback to notify the result.
return void

UpdateOrdered() public method

Update a line of an ordered topic.
public UpdateOrdered ( string name, string address, ITopicUpdaterUpdateCallback callback ) : void
name string The name of the line to update.
address string The new address field value.
callback ITopicUpdaterUpdateCallback The callback to notify the result.
return void

UpdateUnordered() public method

Update a line within an unordered topic.
public UpdateUnordered ( int index, string value, ITopicUpdaterUpdateCallback callback ) : void
index int The index of the line to update.
value string The new line value.
callback ITopicUpdaterUpdateCallback The callback to notify the result.
return void