Exemple #1
0
        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();
     }
 }
Exemple #3
0
 public void HttpStatus(HttpStatusReport report)
 {
     _statusCode = report.Status;
 }
 public void HttpStatus(HttpStatusReport report)
 {
     // NO-OP
 }
Exemple #5
0
 public void HttpStatus(HttpStatusReport report)
 {
     // NO-OP
 }