Exemple #1
0
        public Response StatusCode(StatusAndSubStatusCode statusCode)
        {
            statusCode.ThrowIfNull("statusCode");

            _statusCode = statusCode;

            return(this);
        }
Exemple #2
0
 public Response(StatusAndSubStatusCode statusCode)
 {
     _statusCode = statusCode;
 }
Exemple #3
0
        public Response StatusCode(HttpStatusCode statusCode, int subStatusCode = 0)
        {
            _statusCode = new StatusAndSubStatusCode(statusCode, subStatusCode);

            return(this);
        }