Search Results for

    Show / Hide Table of Contents

    Interface IMessageContext

    Represents the full context of a message that is currently being processed by the bus.

    Namespace: Chapar.Core.Abstractions
    Assembly: Chapar.Core.dll
    Syntax
    public interface IMessageContext

    Properties

    | Edit this page View Source

    Headers

    Gets the headers that were attached to the incoming message.

    Declaration
    IReadOnlyDictionary<string, object?> Headers { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<string, object>
    | Edit this page View Source

    Items

    Gets a shared dictionary for data that should flow through the current message pipeline.

    Declaration
    IDictionary<object, object?> Items { get; }
    Property Value
    Type Description
    IDictionary<object, object>
    | Edit this page View Source

    Message

    Gets the deserialized message payload, or null if the message has not been deserialized yet.

    Declaration
    object? Message { get; }
    Property Value
    Type Description
    object
    | Edit this page View Source

    MessageId

    Gets the unique identifier of the message assigned by the transport.

    Declaration
    string MessageId { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    MessageType

    Gets the fully qualified CLR type name of the message.

    Declaration
    string MessageType { get; }
    Property Value
    Type Description
    string

    Extension Methods

    MessageContextExtensions.GetGuidHeader(IMessageContext, string)
    MessageContextExtensions.GetHeader(IMessageContext, string)
    MessageContextExtensions.GetInt64Header(IMessageContext, string)
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2026