Table of Contents

Class AbstractMessageCondition<T>

Namespace
Steeltoe.Messaging.Handler
Assembly
Steeltoe.Messaging.MessagingBase.dll
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 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.

public abstract 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

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetContent()

protected abstract IList GetContent()

Returns

IList

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 IMessage

the message under process

Returns

T

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

GetToStringInfix()

protected abstract string GetToStringInfix()

Returns

string

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.