コード例 #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);
 }