Class DefaultMessageMatchService
A default message match service.
Inheritance
System.Object
DefaultMessageMatchService
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Messaging
Assembly: Kephas.Messaging.dll
Syntax
[OverridePriority(Priority.Low)]
public class DefaultMessageMatchService : IMessageMatchService
Methods
| Improve this Doc View SourceGetMessageId(Object)
Gets the message ID.
Declaration
public virtual object GetMessageId(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
Returns
Type | Description |
---|---|
System.Object | The message ID. |
GetMessageType(Object)
Gets the message type.
Declaration
public virtual Type GetMessageType(object message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | message | The message. |
Returns
Type | Description |
---|---|
System.Type | The message type. |
IsMatch(IMessageMatch, Type, Type, Object)
Checks whether the message type and message ID matches the provided criteria.
Declaration
public virtual bool IsMatch(IMessageMatch messageMatch, Type envelopeType, Type messageType, object messageId)
Parameters
Type | Name | Description |
---|---|---|
IMessageMatch | messageMatch | Provides the matching criteria. |
System.Type | envelopeType | Type of the envelope. |
System.Type | messageType | Type of the message. |
System.Object | messageId | Identifier for the message. |
Returns
Type | Description |
---|---|
System.Boolean | True if the message type and ID matches the criteria, false if not. |