Table of Contents

Interface IMessageCondition<T>

Namespace
Steeltoe.Messaging.Handler
Assembly
Steeltoe.Messaging.Abstractions.dll

Contract for mapping conditions to messages

public interface IMessageCondition<T> : IMessageCondition

Type Parameters

T

the kind of condition that this condition can be combined with

Methods

Combine(T)

Define the rules for combining this condition with another.

T Combine(T other)

Parameters

other T

the condition to combine with

Returns

T

the resulting message condition

CompareTo(T, IMessage)

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

int CompareTo(T other, IMessage message)

Parameters

other T

the other condition to compare to

message IMessage

the message under process

Returns

int

results of the comparison

GetMatchingCondition(IMessage)

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

T GetMatchingCondition(IMessage message)

Parameters

message IMessage

the message under process

Returns

T

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