Table of Contents

MessageOptions Class

Definition

Namespace
Savvyio.Messaging
Assemblies
Savvyio.Messaging.dll
Source
src/Savvyio.Messaging/MessageOptions.cs

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

public class MessageOptions : IValidatableParameterObject, IParameterObject
Inheritance
MessageOptions
Implements

Examples

This example shows how to configure message envelope metadata before a request is promoted to an outbound message.

using System;
using Savvyio.Messaging;

namespace ExampleApp;

public sealed class MessageOptionsExample
{
    public MessageOptions Configure()
    {
        var options = new MessageOptions { MessageId = "msg-42", Time = new DateTime(2026, 7, 1, 0, 0, 0, DateTimeKind.Utc) };
        options.ValidateOptions();
        return options;
    }
}

Constructors

Name Description
MessageOptions()

Initializes a new instance of the MessageOptions class.

Properties

Name Description
MessageId

Gets or sets the identifier of the message.

Time

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

Methods

Name Description
ValidateOptions()

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

See Also