C# Class Griffin.Container.Commands.ContainerDispatcher

Inheritance: ICommandDispatcher
Exibir arquivo Open project: jgauffin/Griffin.Container

Public Methods

Method Description
ContainerDispatcher ( IServiceLocator serviceLocator ) : System

Initializes a new instance of the ContainerDispatcher class.

Dispatch ( ICommand command ) : void

Dispatch the command

GetDecoratorCreateMethod ( Type commandType ) : MethodInfo

Gets the generic Create method from the decorate.

Protected Methods

Method Description
Decorate ( Type commandType, object handler ) : object

Checks if the current handler can be decorated

Method Details

ContainerDispatcher() public method

Initializes a new instance of the ContainerDispatcher class.
public ContainerDispatcher ( IServiceLocator serviceLocator ) : System
serviceLocator IServiceLocator The service locator. The container implements the interface.
return System

Decorate() protected method

Checks if the current handler can be decorated
protected Decorate ( Type commandType, object handler ) : object
commandType System.Type Type of command (implementation of )
handler object Current handler
return object

Dispatch() public method

Dispatch the command
public Dispatch ( ICommand command ) : void
command ICommand Command to invoke
return void

GetDecoratorCreateMethod() public method

Gets the generic Create method from the decorate.
public GetDecoratorCreateMethod ( Type commandType ) : MethodInfo
commandType System.Type Type of the command.
return System.Reflection.MethodInfo