Ejemplo n.º 1
0
 private void InvokeReactiveRules(IGeneralRule<T> rule)
 {
     if (_rxRuleService.GetReactiveRules().ContainsKey(rule.GetType()))
     {
         Execute(_rxRuleService.GetReactiveRules()[rule.GetType()].ToList());
     }
 }
Ejemplo n.º 2
0
 public static string GetRuleName <T>(this IGeneralRule <T> rule) where T : class, new() =>
 rule.GetType().Name;
Ejemplo n.º 3
0
 public static void Verbose <T>(IGeneralRule <T> rule, string message) where T : class, new()
 {
     Trace.WriteLineIf(TraceSwitch.TraceVerbose, $"Executing {rule.GetType().Name} - {message}", "Information");
 }