Interface IMessageMatchService
Interface for message match service.
Namespace: Kephas.Messaging
Assembly: Kephas.Messaging.dll
Syntax
[SingletonAppServiceContract]
public interface IMessageMatchService
Methods
| Improve this Doc View SourceGetMessageId(Object)
Gets the message ID.
Declaration
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
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
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. |