Class SingleMessageHandlerSelectorBase
Base class for message handler selectors requiring a single handler per message type.
Inheritance
System.Object
SingleMessageHandlerSelectorBase
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.HandlerSelectors
Assembly: Kephas.Messaging.dll
Syntax
public abstract class SingleMessageHandlerSelectorBase : MessageHandlerSelectorBase, IMessageHandlerSelector
Constructors
| Improve this Doc View SourceSingleMessageHandlerSelectorBase(IMessageMatchService)
Initializes a new instance of the SingleMessageHandlerSelectorBase class.
Declaration
protected SingleMessageHandlerSelectorBase(IMessageMatchService messageMatchService)
Parameters
Type | Name | Description |
---|---|---|
IMessageMatchService | messageMatchService | The message match service. |
Methods
| Improve this Doc View SourceGetHandlersFactory(IEnumerable<IExportFactory<IMessageHandler, MessageHandlerMetadata>>, Type, Type, Object)
Gets a factory which retrieves the components handling messages of the given type.
Declaration
public override Func<IEnumerable<IMessageHandler>> GetHandlersFactory(IEnumerable<IExportFactory<IMessageHandler, MessageHandlerMetadata>> handlerFactories, Type envelopeType, Type messageType, object messageId)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IExportFactory<IMessageHandler, MessageHandlerMetadata>> | handlerFactories | The handler factories. |
System.Type | envelopeType | The type of the envelope. This is typically the adapter type, if the message does not implement IMessage. |
System.Type | messageType | The type of the message. |
System.Object | messageId | The ID of the message. |
Returns
Type | Description |
---|---|
System.Func<System.Collections.Generic.IEnumerable<IMessageHandler>> | A factory of an enumeration of message handlers. |