Esempio n. 1
0
        public static void Add(this EngineConfigurator configurator, params Rule[] rules)
        {
            foreach (Rule rule in rules)
            {
                var semanticModelRuleConfigurator = new SemanticModelConfigurator(rule);

                configurator.Add(semanticModelRuleConfigurator);
            }
        }
Esempio n. 2
0
        public static void Rules(this EngineConfigurator configurator,
                                 Action <DesignerRuleConfigurator> configureCallback)
        {
            var designerConfigurator = new DesignerConfiguratorImpl();

            configureCallback(designerConfigurator);

            configurator.Add(designerConfigurator);
        }