Class TransportRoutingRule
Represents a configured transport routing rule.
public sealed record TransportRoutingRule : IEquatable<TransportRoutingRule>
- Inheritance
-
TransportRoutingRule
- Implements
- Inherited Members
- Extension Methods
Constructors
TransportRoutingRule(Type, string, Func<IDispatchMessage, IMessageContext, bool>?, int)
Represents a configured transport routing rule.
public TransportRoutingRule(Type MessageType, string Transport, Func<IDispatchMessage, IMessageContext, bool>? Predicate = null, int Priority = 0)
Parameters
MessageTypeTypeThe message type this rule applies to.
TransportstringThe target transport name.
PredicateFunc<IDispatchMessage, IMessageContext, bool>Optional predicate for conditional routing.
PriorityintRule priority (lower = higher precedence).
Properties
MessageType
The message type this rule applies to.
public Type MessageType { get; init; }
Property Value
Predicate
Optional predicate for conditional routing.
public Func<IDispatchMessage, IMessageContext, bool>? Predicate { get; init; }
Property Value
Priority
Rule priority (lower = higher precedence).
public int Priority { get; init; }
Property Value
Transport
The target transport name.
public string Transport { get; init; }