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