Class MessageDefinition
Represents a message definition which is a part of service operation. This class is a part of service definition structure used for creating or updating service version with single service call.
Inheritance
Inherited Members
Namespace: Nevatech.Vsb.Repository.Services
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
public class MessageDefinition : Message, IValidator, IExtensibleDataObject, IEquatable<Message>
Constructors
MessageDefinition()
Instantiates an empty message definition.
Declaration
public MessageDefinition()
MessageDefinition(Message)
Initializes new instance from provided message.
Declaration
public MessageDefinition(Message message)
Parameters
| Type | Name | Description |
|---|---|---|
| Message | message | Message to be initialized from. |
MessageDefinition(FaultDescription)
Initializes new instance from provided fault description.
Declaration
public MessageDefinition(FaultDescription fault)
Parameters
| Type | Name | Description |
|---|---|---|
| FaultDescription | fault | Fault description to be initialized from. |
MessageDefinition(MessageDescription)
Initializes new instance from provided message description.
Declaration
public MessageDefinition(MessageDescription message)
Parameters
| Type | Name | Description |
|---|---|---|
| MessageDescription | message | Message description to be initialized from. |
Properties
Headers
Gets collection of SOAP headers which are parts of the message.
Declaration
[DataMember]
public Collection<MessageHeaderDefinition> Headers { get; }
Property Value
| Type | Description |
|---|---|
| Collection<MessageHeaderDefinition> |
IsPopulated
Gets or sets a flag indicating that message properties are populated. If False, only downstream message identifier is populated and the rest of the properties must be read from the database.
Declaration
[DataMember(EmitDefaultValue = false)]
public bool IsPopulated { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
Compress()
Clears unnecessary to runtime data to reduce message payload.
Declaration
public void Compress()
CopyFrom(Message)
Populates current instance from provided message.
Declaration
public void CopyFrom(Message message)
Parameters
| Type | Name | Description |
|---|---|---|
| Message | message | Message to be populated from. |