Class AbstractMessageCondition<T>
public abstract class AbstractMessageCondition<T> : IMessageCondition<T>, IMessageCondition
Type Parameters
T
- Inheritance
-
AbstractMessageCondition<T>
- Implements
- Derived
- Inherited Members
Methods
Combine(T)
Define the rules for combining this condition with another.
public abstract 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.
public abstract 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
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
other
object
Returns
GetContent()
protected abstract IList GetContent()
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetMatchingCondition(IMessage)
Check if this condition matches the given Message and returns a potentially new condition with content tailored to the current message.
public abstract 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
GetToStringInfix()
protected abstract string GetToStringInfix()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.