public OperationResultWithError(OperationError error, string message, double responseTime) { this.message = message; this.response_time = responseTime; this.errors.Clear(); this.errors.Add(error); }
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; }
public OperationResultWithError(HttpStatusCode httpStatusCode, OperationError error, double responseTime) { this.SetErrorDetails(error); this.response_time = responseTime; this.status_code = httpStatusCode; }
public OperationResultWithError(HttpStatusCode httpStatusCode, OperationError error) { this.SetErrorDetails(error); this.status_code = httpStatusCode; }
public OperationResultWithError(OperationError error, double responseTime) { this.errors.Clear(); this.errors.Add(error); this.response_time = responseTime; }
public OperationResultWithError(OperationError error, string message) { this.message = message; this.errors.Clear(); this.errors.Add(error); }
public OperationResultWithError(OperationError error) { this.errors.Clear(); this.errors.Add(error); }
private void SetErrorDetails(OperationError error) { this.errors.Clear(); this.errors.Add(error); }