示例#1
0
        static void StartAllRules(StartAllRulesOptions options)
        {
            foreach (var item in BGWorker.Rules)
            {
                BGWorker.StartRule(item.RuleID);
            }

            Console.WriteLine("All rules started!");
        }
示例#2
0
 static void StartRule(StartRuleOptions options)
 {
     BGWorker.StartRule(int.Parse(options.StartRuleID));
 }