protected virtual void UpdateBrokenRule(BrokenRule brokenRule) { var message = LocalizableMessageFunc != null?LocalizableMessageFunc(this) : Message; brokenRule.Message = message; brokenRule.Owner = Owner; brokenRule.Severity = Severity; }
//public static T SuppressNextNInvocation<T>(this T rule, int n) // where T : Rule //{ // return rule; //} #endregion public static T AddBrokenRule <T>(this T extension, BrokenRule brokenRule) where T : IEntityExtensions { extension.BrokenRules.Add(brokenRule); return(extension); }
public BrokenRuleEventArgs(BrokenRule rule) { BrokenRule = rule; }