public static RuleResult OnSuccess(this RuleResult p, Action <RuleResult> action)
 {
     action.Invoke(p);
     return(p);
 }
 public static RuleResult OnFailed(this RuleResult p, Action <RuleResult> action)
 {
     action.Invoke(p);
     return(p);
 }