Interface IMessageCondition<T>
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
Tthe 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
Tthe other condition to compare to
message
IMessagethe 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
IMessagethe message under process
Returns
- T
a condition instance in case of a match; or null if no match