Class RoutingContext
Provides context for routing decisions.
public sealed class RoutingContext
- Inheritance
-
RoutingContext
- Inherited Members
- Extension Methods
Remarks
This class provides the complete routing context including message metadata, routing hints, and additional properties for load balancing and route evaluation.
Properties
CancellationToken
Gets or sets the cancellation token for the routing operation.
public CancellationToken CancellationToken { get; set; }
Property Value
- CancellationToken
The cancellation token for the routing operation.
CorrelationId
Gets or sets the correlation ID.
public string? CorrelationId { get; set; }
Property Value
- string
The correlation ID.
MessageType
Gets or sets the message type being routed.
public string? MessageType { get; set; }
Property Value
- string
The message type being routed.
Properties
Gets additional properties for routing decisions.
public Dictionary<string, object> Properties { get; }
Property Value
- Dictionary<string, object>
Additional properties for routing decisions.
Source
Gets or sets the source of the message.
public string? Source { get; set; }
Property Value
- string
The source of the message.
SourceEndpoint
Gets or sets the source endpoint that sent the message.
public string? SourceEndpoint { get; set; }
Property Value
- string
The source endpoint that sent the message.
Remarks
Alias for Source for backward compatibility.
Timestamp
Gets or sets the current timestamp for routing evaluation.
public DateTimeOffset Timestamp { get; set; }
Property Value
- DateTimeOffset
The current timestamp for routing evaluation.