C# Class Paralect.ServiceBus.Dispatching2.HandlerRegistry

Inheritance: IHandlerRegistry
Mostra file Open project: paralect/Paralect.ServiceBus

Public Methods

Method Description
GetHandlers ( Type messageType ) : IHandler[]

Returns handlers in a correct order. Returns empty array if no handlers found for such message. This method doesn't use reflection.

HandlerRegistry ( List handlers ) : System

Creates HandlerRegistry with specified lookup dictionary

IsMatch ( Type messageType, IEnumerable handlerSubscriptions ) : bool

Method Details

GetHandlers() public method

Returns handlers in a correct order. Returns empty array if no handlers found for such message. This method doesn't use reflection.
public GetHandlers ( Type messageType ) : IHandler[]
messageType System.Type
return IHandler[]

HandlerRegistry() public method

Creates HandlerRegistry with specified lookup dictionary
public HandlerRegistry ( List handlers ) : System
handlers List
return System

IsMatch() public method

public IsMatch ( Type messageType, IEnumerable handlerSubscriptions ) : bool
messageType System.Type
handlerSubscriptions IEnumerable
return bool