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
Afficher le fichier Open project: kahanu/MvcInstaller Class Usage Examples

Méthodes publiques

Méthode Description
RulesValidationFactory ( InstallerConfig config, Configuration configSection ) : System
Validate ( ) : bool

Private Methods

Méthode 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 méthode

public RulesValidationFactory ( InstallerConfig config, Configuration configSection ) : System
config MvcInstaller.Settings.InstallerConfig
configSection System.Configuration.Configuration
Résultat System

Validate() public méthode

public Validate ( ) : bool
Résultat bool