C# Class Pepino.Domain.Services.SynchronousCommandDispatcherBase

Inheritance: ICommandDispatcher
Datei anzeigen Open project: AcklenAvenue/Pepino

Public Methods

Method Description
AfterDispatch ( ) : void
BeforeDispatch ( ) : void
Dispatch ( IUserSession userSession, object command ) : void
HandleTheCommand ( IUserSession userSession, object command ) : void
LogException ( Exception ex ) : void
ValidateTheCommand ( IUserSession userSession, object command ) : void

Protected Methods

Method Description
FindHandlers ( Type genericCommandHandlerType ) : IEnumerable
FindValidators ( Type genericCommandValidatorType ) : IEnumerable

Private Methods

Method Description
GetMatchingCommandHandlers ( object command ) : IEnumerable
GetMatchingCommandValidators ( object command ) : IEnumerable
InvokeMethod ( string methodName, object invokableObject ) : void

Method Details

AfterDispatch() public abstract method

public abstract AfterDispatch ( ) : void
return void

BeforeDispatch() public abstract method

public abstract BeforeDispatch ( ) : void
return void

Dispatch() public method

public Dispatch ( IUserSession userSession, object command ) : void
userSession IUserSession
command object
return void

FindHandlers() protected abstract method

protected abstract FindHandlers ( Type genericCommandHandlerType ) : IEnumerable
genericCommandHandlerType System.Type
return IEnumerable

FindValidators() protected abstract method

protected abstract FindValidators ( Type genericCommandValidatorType ) : IEnumerable
genericCommandValidatorType System.Type
return IEnumerable

HandleTheCommand() public method

public HandleTheCommand ( IUserSession userSession, object command ) : void
userSession IUserSession
command object
return void

LogException() public abstract method

public abstract LogException ( Exception ex ) : void
ex System.Exception
return void

ValidateTheCommand() public method

public ValidateTheCommand ( IUserSession userSession, object command ) : void
userSession IUserSession
command object
return void