Table of Contents

Class EndpointRoutingRule

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

Represents a configured endpoint routing rule.

public sealed record EndpointRoutingRule : IEquatable<EndpointRoutingRule>
Inheritance
EndpointRoutingRule
Implements
Inherited Members
Extension Methods

Constructors

EndpointRoutingRule(Type, IReadOnlyList<string>, Func<IDispatchMessage, IMessageContext, bool>?, int, bool)

Represents a configured endpoint routing rule.

public EndpointRoutingRule(Type MessageType, IReadOnlyList<string> Endpoints, Func<IDispatchMessage, IMessageContext, bool>? Predicate = null, int Priority = 0, bool StopOnMatch = false)

Parameters

MessageType Type

The message type this rule applies to.

Endpoints IReadOnlyList<string>

The target endpoint names.

Predicate Func<IDispatchMessage, IMessageContext, bool>

Optional predicate for conditional routing.

Priority int

Rule priority (lower = higher precedence).

StopOnMatch bool

Whether to stop evaluating further rules on match.

Properties

Endpoints

The target endpoint names.

public IReadOnlyList<string> Endpoints { get; init; }

Property Value

IReadOnlyList<string>

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

StopOnMatch

Whether to stop evaluating further rules on match.

public bool StopOnMatch { get; init; }

Property Value

bool