Class MessageContext
Represents the context of a message being sent within the agent runtime. This includes metadata such as the sender, topic, RPC status, and cancellation handling.
- Inheritance
-
Message
Context
- Inherited Members
Constructors
MessageContext(string, CancellationToken)
Represents the context of a message being sent within the agent runtime. This includes metadata such as the sender, topic, RPC status, and cancellation handling.
Parameters
messageId
stringcancellationToken
CancellationToken
MessageContext(CancellationToken)
Parameters
cancellation
CancellationToken
Properties
CancellationToken
Gets or sets the cancellation token associated with this message. This can be used to cancel the operation if necessary.
Property Value
IsRpc
Gets or sets a value indicating whether this message is part of an RPC (Remote Procedure Call).
Property Value
MessageId
Gets or sets the unique identifier for this message.
Property Value
Sender
Gets or sets the sender of the message.
If null
, the sender is unspecified.
Property Value
Topic
Gets or sets the topic associated with the message.
If null
, the message is not tied to a specific topic.