Exemplo n.º 1
0
        public static RuleSetInfoCollection GetNamedRuleSets(string name)
        {
            RuleSetInfoCollection namedRuleCollection = new RuleSetInfoCollection();

            Microsoft.BizTalk.RuleEngineExtensions.RuleSetDeploymentDriver dd = new Microsoft.BizTalk.RuleEngineExtensions.RuleSetDeploymentDriver();
            RuleSetInfoCollection ruleCollection = dd.GetDeployedRuleSets();

            foreach (RuleSetInfo rule in ruleCollection)
            {
                if (rule.Name == name)
                {
                    namedRuleCollection.Add(rule);
                }
            }
            return(namedRuleCollection);
        }
Exemplo n.º 2
0
 public static RuleSetInfoCollection GetDeployedRuleSets()
 {
     Microsoft.BizTalk.RuleEngineExtensions.RuleSetDeploymentDriver dd = new Microsoft.BizTalk.RuleEngineExtensions.RuleSetDeploymentDriver();
     return(dd.GetDeployedRuleSets());
 }