Table of Contents

Class MessageOptions

Namespace
Savvyio.Messaging
Assembly
Savvyio.Messaging.dll

Configuration options that is related to wrapping an IRequest implementation inside a message.

public class MessageOptions : IValidatableParameterObject, IParameterObject
Inheritance
Object
MessageOptions
Implements

Constructors

MessageOptions()

Initializes a new instance of the MessageOptions class.

public MessageOptions()

Remarks

The following table shows the initial property values for an instance of MessageOptions.

PropertyInitial Value
MessageIdGuid.NewGuid().ToString("N")

Properties

MessageId

Gets or sets the identifier of the message.

public string MessageId { get; set; }

Property Value

String

The identifier of the message.

Time

Gets or sets the time, expressed as the Coordinated Universal Time (UTC), of the message.

public DateTime? Time { get; set; }

Property Value

Nullable<DateTime>

The point in time the message was generated.

Methods

ValidateOptions()

Determines whether the public read-write properties of this instance are in a valid state.

public virtual void ValidateOptions()

Remarks

This method is expected to throw exceptions when one or more conditions fails to be in a valid state.

Exceptions

System.InvalidOperationException

MessageId cannot be null, empty or consist only of white-space characters - or - Time (when set) was not expressed as the Coordinated Universal Time (UTC).

See Also