示例#1
0
 public OperationResultWithError(OperationError error, string message, double responseTime)
 {
     this.message       = message;
     this.response_time = responseTime;
     this.errors.Clear();
     this.errors.Add(error);
 }
示例#2
0
 public OperationResultLegacyWithError(OperationError error, double responseTime)
 {
     this.success = false;
     this.message = "Error";
     this.errors.Clear();
     this.errors.Add(error);
     this.response_time = responseTime;
     this.status_code   = HttpStatusCode.InternalServerError;
 }
示例#3
0
 public OperationResultWithError(HttpStatusCode httpStatusCode, OperationError error, double responseTime)
 {
     this.SetErrorDetails(error);
     this.response_time = responseTime;
     this.status_code   = httpStatusCode;
 }
示例#4
0
 public OperationResultWithError(HttpStatusCode httpStatusCode, OperationError error)
 {
     this.SetErrorDetails(error);
     this.status_code = httpStatusCode;
 }
示例#5
0
 public OperationResultWithError(OperationError error, double responseTime)
 {
     this.errors.Clear();
     this.errors.Add(error);
     this.response_time = responseTime;
 }
示例#6
0
 public OperationResultWithError(OperationError error, string message)
 {
     this.message = message;
     this.errors.Clear();
     this.errors.Add(error);
 }
示例#7
0
 public OperationResultWithError(OperationError error)
 {
     this.errors.Clear();
     this.errors.Add(error);
 }
示例#8
0
 private void SetErrorDetails(OperationError error)
 {
     this.errors.Clear();
     this.errors.Add(error);
 }