C# Class Prototype.Platform.Dispatching.DispatcherHandlerRegistry

Show file Open project: paralect/prototype Class Usage Examples

Public Methods

Method Description
AddInterceptor ( Type type ) : void
GetSubscriptions ( Type messageType ) : List
InsureOrderOfHandlers ( ) : void
Register ( Assembly assembly, String namespaces ) : void

Register all handlers in assembly (you can register handlers that optionally belongs to specified namespaces)

SortInPlace ( List list ) : void

Private Methods

Method Description
AddSubscription ( Type messageType, Type handlerType, Int32 priority ) : void
BelongToNamespaces ( Type type, String namespaces ) : System.Boolean

Method Details

AddInterceptor() public method

public AddInterceptor ( Type type ) : void
type System.Type
return void

GetSubscriptions() public method

public GetSubscriptions ( Type messageType ) : List
messageType System.Type
return List

InsureOrderOfHandlers() public method

public InsureOrderOfHandlers ( ) : void
return void

Register() public method

Register all handlers in assembly (you can register handlers that optionally belongs to specified namespaces)
public Register ( Assembly assembly, String namespaces ) : void
assembly System.Reflection.Assembly
namespaces String
return void

SortInPlace() public method

public SortInPlace ( List list ) : void
list List
return void