C# Class NServiceBus.Unicast.MessageHandlerRegistry

Maintains the message handlers for this endpoint.
Afficher le fichier Open project: Particular/NServiceBus Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

Clears the cache.
public Clear ( ) : void
Résultat void

GetHandlersFor() public méthode

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

GetMessageTypes() public méthode

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

RegisterHandler() public méthode

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