static void StartAllRules(StartAllRulesOptions options) { foreach (var item in BGWorker.Rules) { BGWorker.StartRule(item.RuleID); } Console.WriteLine("All rules started!"); }
static void StartRule(StartRuleOptions options) { BGWorker.StartRule(int.Parse(options.StartRuleID)); }