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.
파일 보기 프로젝트 열기: pushtechnology/diffusion-examples

공개 메소드들

메소드 설명
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