Interface IMessageContext
- Namespace
- AnyProtocol.Abstraction
- Assembly
- AnyProtocol.Abstraction.dll
Defines operations for message context.
public interface IMessageContext
Properties
Body
Gets the body.
ReadOnlyMemory<byte> Body { get; set; }
Property Value
- ReadOnlyMemory<byte>
The body.
CancellationToken
Gets the cancellation token.
CancellationToken CancellationToken { get; }
Property Value
- CancellationToken
The cancellation token.
Channel
Gets the channel.
string Channel { get; set; }
Property Value
- string
The channel.
Direction
Gets the direction.
MessageDirection Direction { get; set; }
Property Value
- MessageDirection
The direction.
Headers
Gets the headers.
IMessageHeaders Headers { get; }
Property Value
- IMessageHeaders
The headers.
Items
Gets the items.
IDictionary<string, object?> Items { get; }
Property Value
- IDictionary<string, object>
The items.
Message
Gets the message.
object? Message { get; set; }
Property Value
- object
The message.
MessageType
Gets the message type.
MessageType MessageType { get; set; }
Property Value
- MessageType
The message type.
Method
Gets the method.
ContractMethodDescriptor? Method { get; set; }
Property Value
- ContractMethodDescriptor
The method.