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.
Afficher le fichier Open project: pushtechnology/diffusion-examples

Méthodes publiques

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

Méthode Description
Update ( string topic, IUpdate update, ITopicUpdaterUpdateCallback callback ) : void

Method Details

AddOrdered() public méthode

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

AddUnordered() public méthode

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

Close() public méthode

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

ControlClientUpdatingPagedTopics() public méthode

Constructor.
public ControlClientUpdatingPagedTopics ( ) : System
Résultat System

InsertUnordered() public méthode

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

RemoveOrdered() public méthode

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

RemoveUnordered() public méthode

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

UpdateOrdered() public méthode

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

UpdateUnordered() public méthode

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