public HttpStatus(HttpStatusReport report, bool failed) { if (report != null) { _status = report.Status; _description = report.Description; } else { _status = failed ? HttpStatusCode.InternalServerError : HttpStatusCode.OK; } if (_description.IsEmpty()) { _description = _status.ToString().SplitPascalCase(); } }
public HttpStatus(HttpStatusReport report, bool failed) { if(report != null) { _status = report.Status; _description = report.Description; } else { _status = failed ? HttpStatusCode.InternalServerError : HttpStatusCode.OK; } if (_description.IsEmpty()) { _description = _status.ToString().SplitPascalCase(); } }
public void HttpStatus(HttpStatusReport report) { _statusCode = report.Status; }
public void HttpStatus(HttpStatusReport report) { // NO-OP }