/// <summary> /// /// </summary> /// <param name="ex"></param> /// <param name="level"></param> protected virtual void RaiseValidationError(Exception ex, OpdsValidationErrorLevel level) { var temp = ValidationError; if (temp != null) { temp(this, new OpdsValidationEventArgs(level, ex.Message)); } }
/// <summary> /// /// </summary> /// <param name="level"></param> /// <param name="message"></param> /// <param name="source"></param> public OpdsValidationEventArgs(OpdsValidationErrorLevel level, string message, string source = null) { ErrorLevel = level; Message = message; Source = source; }