C# Class NServiceBus.Unicast.MessageHandlerRegistry

Maintains the message handlers for this endpoint.
Mostrar archivo Open project: Particular/NServiceBus Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

Clears the cache.

GetHandlersFor ( Type messageType ) : List

Gets the list of handlers Types for the given messageType.

GetMessageTypes ( ) : IEnumerable

Lists all message type for which we have handlers.

This method should not be called on a hot path.

RegisterHandler ( Type handlerType ) : void

Registers the given potential handler type.

Private Methods

Method Description
CacheHandlerMethods ( Type handler, Type messageType, ICollection typeList ) : void
CacheMethod ( Type handler, Type messageType, Type interfaceGenericType, ICollection methodList, bool isTimeoutHandler ) : void
GetMessageTypesBeingHandledBy ( Type type ) : System.Type[]
GetMethod ( Type targetType, Type messageType, Type interfaceGenericType ) : Func
MessageHandlerRegistry ( Conventions conventions ) : System
ValidateHandlerType ( Type handlerType ) : void

Method Details

Clear() public method

Clears the cache.
public Clear ( ) : void
return void

GetHandlersFor() public method

Gets the list of handlers Types for the given messageType.
public GetHandlersFor ( Type messageType ) : List
messageType System.Type
return List

GetMessageTypes() public method

Lists all message type for which we have handlers.
This method should not be called on a hot path.
public GetMessageTypes ( ) : IEnumerable
return IEnumerable

RegisterHandler() public method

Registers the given potential handler type.
public RegisterHandler ( Type handlerType ) : void
handlerType System.Type
return void