Show / Hide Table of Contents

Class MessageHandlerSelectorBase

Base class for message handler selectors.

Inheritance
System.Object
MessageHandlerSelectorBase
EventMessageHandlerSelector
SingleMessageHandlerSelectorBase
Implements
IMessageHandlerSelector
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 MessageHandlerSelectorBase : IMessageHandlerSelector

Constructors

| Improve this Doc View Source

MessageHandlerSelectorBase(IMessageMatchService)

Initializes a new instance of the MessageHandlerSelectorBase class.

Declaration
protected MessageHandlerSelectorBase(IMessageMatchService messageMatchService)
Parameters
Type Name Description
IMessageMatchService messageMatchService

The message match service.

Properties

| Improve this Doc View Source

MessageMatchService

Gets the message match service.

Declaration
protected IMessageMatchService MessageMatchService { get; }
Property Value
Type Description
IMessageMatchService

The message match service.

Methods

| Improve this Doc View Source

CanHandle(Type, Type, Object)

Indicates whether the selector can handle the indicated message type.

Declaration
public abstract bool CanHandle(Type envelopeType, Type messageType, object messageId)
Parameters
Type Name Description
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.Boolean

True if the selector can handle the message type, false if not.

| Improve this Doc View Source

GetHandlersFactory(IEnumerable<IExportFactory<IMessageHandler, MessageHandlerMetadata>>, Type, Type, Object)

Gets a factory which retrieves the components handling messages of the given type.

Declaration
public virtual 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.

| Improve this Doc View Source

GetOrderedMessageHandlerFactories(IEnumerable<IExportFactory<IMessageHandler, MessageHandlerMetadata>>, Type, Type, Object)

Gets the ordered message handler factories.

Declaration
protected virtual IList<IExportFactory<IMessageHandler, MessageHandlerMetadata>> GetOrderedMessageHandlerFactories(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.Collections.Generic.IList<IExportFactory<IMessageHandler, MessageHandlerMetadata>>

The ordered message handler factories.

Implements

IMessageHandlerSelector

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX