Table of Contents

Class DestinationPatternsMessageCondition

Namespace
Steeltoe.Messaging.Handler
Assembly
Steeltoe.Messaging.MessagingBase.dll
public class DestinationPatternsMessageCondition : AbstractMessageCondition<DestinationPatternsMessageCondition>, IMessageCondition<DestinationPatternsMessageCondition>, IMessageCondition
Inheritance
DestinationPatternsMessageCondition
Implements
Inherited Members

Constructors

DestinationPatternsMessageCondition(params string[])

public DestinationPatternsMessageCondition(params string[] patterns)

Parameters

patterns string[]

DestinationPatternsMessageCondition(string[], IPathMatcher)

public DestinationPatternsMessageCondition(string[] patterns, IPathMatcher matcher)

Parameters

patterns string[]
matcher IPathMatcher

DestinationPatternsMessageCondition(string[], IRouteMatcher)

public DestinationPatternsMessageCondition(string[] patterns, IRouteMatcher routeMatcher)

Parameters

patterns string[]
routeMatcher IRouteMatcher

Fields

LOOKUP_DESTINATION_HEADER

public const string LOOKUP_DESTINATION_HEADER = "lookupDestination"

Field Value

string

Properties

Patterns

public ISet<string> Patterns { get; }

Property Value

ISet<string>

Methods

Combine(DestinationPatternsMessageCondition)

Define the rules for combining this condition with another.

public override DestinationPatternsMessageCondition Combine(DestinationPatternsMessageCondition other)

Parameters

other DestinationPatternsMessageCondition

the condition to combine with

Returns

DestinationPatternsMessageCondition

the resulting message condition

CompareTo(DestinationPatternsMessageCondition, IMessage)

Compare this condition to another in the context of a specific message.

public override int CompareTo(DestinationPatternsMessageCondition other, IMessage message)

Parameters

other DestinationPatternsMessageCondition

the other condition to compare to

message IMessage

the message under process

Returns

int

results of the comparison

GetContent()

protected override IList GetContent()

Returns

IList

GetMatchingCondition(IMessage)

Check if this condition matches the given Message and returns a potentially new condition with content tailored to the current message.

public override DestinationPatternsMessageCondition GetMatchingCondition(IMessage message)

Parameters

message IMessage

the message under process

Returns

DestinationPatternsMessageCondition

a condition instance in case of a match; or null if no match

GetToStringInfix()

protected override string GetToStringInfix()

Returns

string