C# Класс 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.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
Update ( string topic, IUpdate update, ITopicUpdaterUpdateCallback callback ) : void

Описание методов

AddOrdered() публичный Метод

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.
Результат void

AddUnordered() публичный Метод

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.
Результат void

Close() публичный Метод

Close the session.
public Close ( ) : void
Результат void

ControlClientUpdatingPagedTopics() публичный Метод

Constructor.
public ControlClientUpdatingPagedTopics ( ) : System
Результат System

InsertUnordered() публичный Метод

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.
Результат void

RemoveOrdered() публичный Метод

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.
Результат void

RemoveUnordered() публичный Метод

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.
Результат void

UpdateOrdered() публичный Метод

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.
Результат void

UpdateUnordered() публичный Метод

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.
Результат void