Esempio n. 1
0
 /// <summary>
 ///     Sets the memory pool validation state to invalid, with an error message.
 /// </summary>
 /// <param name="error">The current error.</param>
 /// <param name="errorMessage">The current error message.</param>
 /// <returns>The current validation state of the memory pool.</returns>
 public MempoolValidationState Invalid(MempoolError error, string errorMessage)
 {
     this.Error        = error;
     this.IsInvalid    = true;
     this.ErrorMessage = errorMessage;
     return(this);
 }
Esempio n. 2
0
 /// <summary>
 ///     Sets the memory pool validation state to invalid.
 /// </summary>
 /// <param name="error">The current error.</param>
 /// <returns>The current validation state of the memory pool.</returns>
 public MempoolValidationState Invalid(MempoolError error)
 {
     this.Error     = error;
     this.IsInvalid = true;
     return(this);
 }
Esempio n. 3
0
 /// <summary>
 ///     Sets the memory pool validation state to fail, with an error message.
 /// </summary>
 /// <param name="error">The current error.</param>
 /// <param name="errorMessage">The current error message.</param>
 /// <returns>The current validation state of the memory pool.</returns>
 public MempoolValidationState Fail(MempoolError error, string errorMessage)
 {
     this.Error        = error;
     this.ErrorMessage = errorMessage;
     return(this);
 }
Esempio n. 4
0
 /// <summary>
 ///     Sets the memory pool validation state to fail.
 /// </summary>
 /// <param name="error">The current error.</param>
 /// <returns>The current validation state of the memory pool.</returns>
 public MempoolValidationState Fail(MempoolError error)
 {
     this.Error = error;
     return(this);
 }