Beispiel #1
0
 private void InvokeProactiveRules(IRule <T> rule)
 {
     if (_rxRuleService.GetProactiveRules().ContainsKey(rule.GetType()))
     {
         Execute(_rxRuleService.GetProactiveRules()[rule.GetType()].ToList());
     }
 }
Beispiel #2
0
 private async Task InvokeProactiveRulesAsync(IRuleAsync <T> asyncRule)
 {
     if (_rxRuleService.GetProactiveRules().ContainsKey(asyncRule.GetType()))
     {
         await ExecuteRulesAsync(_rxRuleService.GetProactiveRules()[asyncRule.GetType()]);
     }
 }