DataSource.NET  6.2.20.310828
Caplin.DataSource.Messaging.Wrapper.IWrapperMessage Interface Reference

Interface for wrapping multiple messages of the same type together into one message. More...

Inheritance diagram for Caplin.DataSource.Messaging.Wrapper.IWrapperMessage:
Caplin.DataSource.Messaging.IMessage

Public Member Functions

void AddMessage (IMessage message)
 Adds a message to the WrapperMessage, the first message defines the message type. If another message of a different type to the first message is added, then an Exception is thrown. More...
 

Properties

IList< IMessageMessages [get]
 Returns the list of messages in the order they were added. More...
 
- Properties inherited from Caplin.DataSource.Messaging.IMessage
bool Image [get, set]
 Gets or sets a boolean value indicating whether this IMessage represents an image or an update. More...
 
string Subject [get]
 Gets the subject of this message. More...
 

Detailed Description

Interface for wrapping multiple messages of the same type together into one message.

WrapperMessages are only useful for wrapping RecordType2Message, RecordType3Message and PermissionMessages.

WrapperMessages are be published as one merged update by DataSource. A WrapperMessage will ignore any

setImage

and

setNonActive

flags from any added messages, instead the

setImage

and

setNoneActive

flags must be set on the WrapperMessage itself.

Member Function Documentation

void Caplin.DataSource.Messaging.Wrapper.IWrapperMessage.AddMessage ( IMessage  message)

Adds a message to the WrapperMessage, the first message defines the message type. If another message of a different type to the first message is added, then an Exception is thrown.

Parameters
messageThe message to add to the wrapper
Exceptions
ExceptionWhen the message added is a different type to the first one added

Property Documentation

IList<IMessage> Caplin.DataSource.Messaging.Wrapper.IWrapperMessage.Messages
get

Returns the list of messages in the order they were added.

list of messages.


Generated on Wed Jan 24 2018 12:22:40 for DataSource.NET