C# Class Bifrost.FluentValidation.Commands.CommandValidatorProvider

Inheritance: ICommandValidatorProvider
Exibir arquivo Open project: dolittle/Bifrost

Public Methods

Method Description
CommandValidatorProvider ( ITypeDiscoverer typeDiscoverer, IContainer container ) : System

Initializes an instance of CommandValidatorProvider CommandValidatorProvider

GetBusinessValidatorFor ( ICommand command ) : ICommandBusinessValidator
GetBusinessValidatorFor ( Type commandType ) : ICommandBusinessValidator
GetInputValidatorFor ( ICommand command ) : ICommandInputValidator
GetInputValidatorFor ( Type commandType ) : ICommandInputValidator

Private Methods

Method Description
BuildDynamicallyDiscoveredBusinessValidator ( Type commandType, IDictionary typeAndAssociatedValidatorTypes ) : ICommandBusinessValidator
BuildDynamicallyDiscoveredInputValidator ( Type commandType, IDictionary typeAndAssociatedValidatorTypes ) : ICommandInputValidator
GetCommandType ( Type typeToRegister ) : Type
GetGenericParameterType ( Type typeToQuery, Type genericInterfaceType ) : Type
GetTypesFromCommand ( Type commandType ) : IEnumerable
GetValidatedType ( Type typeToRegister ) : Type
GetValidatorsFor ( Type commandType, Dictionary registeredTypes ) : IEnumerable>.Dictionary
InitializeCommandValidators ( ) : void
InitializeDynamicValidators ( ) : void
RegisterCommandValidator ( Type typeToRegister, Type>.IDictionary validatorRegistry ) : void
RegisterValidator ( Type typeToRegister, IDictionary validatorRegistry ) : void

Method Details

CommandValidatorProvider() public method

Initializes an instance of CommandValidatorProvider CommandValidatorProvider
public CommandValidatorProvider ( ITypeDiscoverer typeDiscoverer, IContainer container ) : System
typeDiscoverer ITypeDiscoverer /// An instance of ITypeDiscoverer to help identify and register implementations /// and implementations ///
container IContainer An instance of to manage instances of any
return System

GetBusinessValidatorFor() public method

public GetBusinessValidatorFor ( ICommand command ) : ICommandBusinessValidator
command ICommand
return ICommandBusinessValidator

GetBusinessValidatorFor() public method

public GetBusinessValidatorFor ( Type commandType ) : ICommandBusinessValidator
commandType System.Type
return ICommandBusinessValidator

GetInputValidatorFor() public method

public GetInputValidatorFor ( ICommand command ) : ICommandInputValidator
command ICommand
return ICommandInputValidator

GetInputValidatorFor() public method

public GetInputValidatorFor ( Type commandType ) : ICommandInputValidator
commandType System.Type
return ICommandInputValidator