DataSource.NET  7.1.13.29686-d434448
Caplin.DataSource.Messaging.Container.IContainerModel Interface Reference

This interface defines a model that represents a container. Implement it to simplify the processing of incoming IContainerMessages. More...

Public Member Functions

void AddElement (string subject)
 Called to indicate that you should add (append) an element with the given subject to the container. More...
 
void InsertElement (string subject, int position)
 Called to indicate that you should insert an element with the given subject at the given position within the container. More...
 
void RemoveElement (string subject)
 Called to indicate that you should remove the element with the given subject from the container. More...
 
void RemoveElementsWithPrefix (string prefix)
 Called to indicate that you should remove all elements from the container that have a subject that matches the specified prefix. More...
 

Detailed Description

This interface defines a model that represents a container. Implement it to simplify the processing of incoming IContainerMessages.

summary>

Note: You do not have to use this interface to process IContainerMessages. You can instead use the basic approach, as explained in IContainerMessage.Operations.

To use the IContainerModel interface:

Member Function Documentation

void Caplin.DataSource.Messaging.Container.IContainerModel.AddElement ( string  subject)

Called to indicate that you should add (append) an element with the given subject to the container.

Parameters
subjectThe subject of the element to add.

The element must be added to the end of the container. For example, if there are three elements already in the container at positions 0, 1, and 2 respectively, adding a fourth element places it at position 3.

void Caplin.DataSource.Messaging.Container.IContainerModel.InsertElement ( string  subject,
int  position 
)

Called to indicate that you should insert an element with the given subject at the given position within the container.

Parameters
subjectThe subject of the element to be inserted.
positionThe position at which to insert the element. The first element in a container is at position 0.
void Caplin.DataSource.Messaging.Container.IContainerModel.RemoveElement ( string  subject)

Called to indicate that you should remove the element with the given subject from the container.

Parameters
subjectThe subject of the element to be removed.
void Caplin.DataSource.Messaging.Container.IContainerModel.RemoveElementsWithPrefix ( string  prefix)

Called to indicate that you should remove all elements from the container that have a subject that matches the specified prefix.

Parameters
prefixThe prefix to match subjects for which elements are to be removed from the container.

Generated on Fri Apr 24 2020 16:29:45 for DataSource.NET