示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#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);
 }