Table of Contents

Class TransportRoutingRule

Namespace
Excalibur.Dispatch.Routing.Builder
Assembly
Excalibur.Dispatch.dll

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

MessageType Type

The message type this rule applies to.

Transport string

The target transport name.

Predicate Func<IDispatchMessage, IMessageContext, bool>

Optional predicate for conditional routing.

Priority int

Rule priority (lower = higher precedence).

Properties

MessageType

The message type this rule applies to.

public Type MessageType { get; init; }

Property Value

Type

Predicate

Optional predicate for conditional routing.

public Func<IDispatchMessage, IMessageContext, bool>? Predicate { get; init; }

Property Value

Func<IDispatchMessage, IMessageContext, bool>

Priority

Rule priority (lower = higher precedence).

public int Priority { get; init; }

Property Value

int

Transport

The target transport name.

public string Transport { get; init; }

Property Value

string