Interface IMessageHandlerRegistry
Interface for message handler registry.
Namespace: Kephas.Messaging
Assembly: Kephas.Messaging.dll
Syntax
[SingletonAppServiceContract]
public interface IMessageHandlerRegistry
Methods
| Improve this Doc View SourceRegisterHandler(IMessageHandler, MessageHandlerMetadata)
Registers the handler.
Declaration
IMessageHandlerRegistry RegisterHandler(IMessageHandler handler, MessageHandlerMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
IMessageHandler | handler | The handler. |
MessageHandlerMetadata | metadata | The metadata. |
Returns
Type | Description |
---|---|
IMessageHandlerRegistry | This message handler registry. |
ResolveMessageHandlers(IMessage)
Resolves the message handlers for the provided message.
Declaration
IEnumerable<IMessageHandler> ResolveMessageHandlers(IMessage message)
Parameters
Type | Name | Description |
---|---|---|
IMessage | message | The message. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IMessageHandler> | The matching message handlers. |