Microsoft.RuleEngine.RuleSetDeploymentDriver rdd = new Microsoft.RuleEngine.RuleSetDeploymentDriver("BG4WS0325", "BizTalkRuleEngineDb"); SqlRuleStore sqlRuleStore = (SqlRuleStore)rdd.GetRuleStore(); Microsoft.RuleEngine.RuleSetInfoCollection colPolInfo = null; colPolInfo = sqlRuleStore.GetRuleSets(RuleStore.Filter.All); foreach (RuleSetInfo pInfo in colPolInfo) { MessageBox.Show(string.Format("Policy- Info = [{0}].v.{1}.{2}", pInfo.Name, pInfo.MajorRevision, pInfo.MinorRevision)); //get the policies to extract rules Microsoft.RuleEngine.RuleSet pol = sqlRuleStore.GetRuleSet(pInfo); //MessageBox.Show(string.Format("Rules- Count = [{0}]", pol.Rules.Count)); //pol.Rules.Values MessageBox.Show(string.Format("Rules- Count = [{0}]", pol.Rules.Count)); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)