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 SourceHeaders
Gets the headers that were attached to the incoming message.
Declaration
IReadOnlyDictionary<string, object?> Headers { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyDictionary<string, object> |
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> |
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 |
MessageId
Gets the unique identifier of the message assigned by the transport.
Declaration
string MessageId { get; }
Property Value
| Type | Description |
|---|---|
| string |
MessageType
Gets the fully qualified CLR type name of the message.
Declaration
string MessageType { get; }
Property Value
| Type | Description |
|---|---|
| string |