Show / Hide Table of Contents

Class DefaultMessageHandlerRegistry

A default message handler registry.

Inheritance
System.Object
DefaultMessageHandlerRegistry
Implements
IMessageHandlerRegistry
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 DefaultMessageHandlerRegistry : IMessageHandlerRegistry

Constructors

| Improve this Doc View Source

DefaultMessageHandlerRegistry(IMessageMatchService, IList<IExportFactory<IMessageHandlerSelector, AppServiceMetadata>>, IList<IExportFactory<IMessageHandler, MessageHandlerMetadata>>)

Initializes a new instance of the DefaultMessageHandlerRegistry class.

Declaration
public DefaultMessageHandlerRegistry(IMessageMatchService messageMatchService, IList<IExportFactory<IMessageHandlerSelector, AppServiceMetadata>> handlerSelectorFactories, IList<IExportFactory<IMessageHandler, MessageHandlerMetadata>> handlerFactories)
Parameters
Type Name Description
IMessageMatchService messageMatchService

The message match service.

System.Collections.Generic.IList<IExportFactory<IMessageHandlerSelector, AppServiceMetadata>> handlerSelectorFactories

The handler selector factories.

System.Collections.Generic.IList<IExportFactory<IMessageHandler, MessageHandlerMetadata>> handlerFactories

The handler factories.

Methods

| Improve this Doc View Source

RegisterHandler(IMessageHandler, MessageHandlerMetadata)

Registers the message handler.

Declaration
public IMessageHandlerRegistry RegisterHandler(IMessageHandler handler, MessageHandlerMetadata metadata)
Parameters
Type Name Description
IMessageHandler handler

The handler.

MessageHandlerMetadata metadata

The handler metadata.

Returns
Type Description
IMessageHandlerRegistry

This message handler registry.

| Improve this Doc View Source

ResolveMessageHandlers(IMessage)

Resolves the message handlers for the provided message.

Declaration
public virtual IEnumerable<IMessageHandler> ResolveMessageHandlers(IMessage message)
Parameters
Type Name Description
IMessage message

The message.

Returns
Type Description
System.Collections.Generic.IEnumerable<IMessageHandler>

The message handlers.

Implements

IMessageHandlerRegistry

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)
MessageHandlerRegistryExtensions.RegisterHandler<TMessage>(IMessageHandlerRegistry, Func<TMessage, IMessagingContext, CancellationToken, Task<IMessage>>)
MessageHandlerRegistryExtensions.RegisterHandler<TMessage>(IMessageHandlerRegistry, Func<TMessage, IMessagingContext, IMessage>)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX