C# Class MvcInstaller.RulesValidationFactory

The RulesValidationFactory class is used in the InstallWizard inside the CreateMembership method. It validates rules based on the web.config/membership section and returns the errors to the browser.
Inheritance: IRulesValidationFactory
Datei anzeigen Open project: kahanu/MvcInstaller Class Usage Examples

Public Methods

Method Description
RulesValidationFactory ( InstallerConfig config, Configuration configSection ) : System
Validate ( ) : bool

Private Methods

Method Description
AddRule ( PropertyRule rule ) : void

Add a rule to the list of rules to validate.

InitRules ( ) : void

Setup the rules to validate on the Membership section attributes.

Method Details

RulesValidationFactory() public method

public RulesValidationFactory ( InstallerConfig config, Configuration configSection ) : System
config MvcInstaller.Settings.InstallerConfig
configSection System.Configuration.Configuration
return System

Validate() public method

public Validate ( ) : bool
return bool