public static void Add(this EngineConfigurator configurator, params Rule[] rules) { foreach (Rule rule in rules) { var semanticModelRuleConfigurator = new SemanticModelConfigurator(rule); configurator.Add(semanticModelRuleConfigurator); } }
public static void Rules(this EngineConfigurator configurator, Action <DesignerRuleConfigurator> configureCallback) { var designerConfigurator = new DesignerConfiguratorImpl(); configureCallback(designerConfigurator); configurator.Add(designerConfigurator); }