public HttpRequestContext(HttpMethod requestMethod, string builtActionPath, IEnumerable <IRequestHeader> headers, IRequestBodyContext bodyContext, ISupressedErrorCodeContext supressedErrorCodesProvider) { if (requestMethod == null) { throw new ArgumentNullException(nameof(requestMethod)); } if (headers == null) { throw new ArgumentNullException(nameof(headers)); } if (bodyContext == null) { throw new ArgumentNullException(nameof(bodyContext)); } if (supressedErrorCodesProvider == null) { throw new ArgumentNullException(nameof(supressedErrorCodesProvider)); } if (string.IsNullOrWhiteSpace(builtActionPath)) { throw new ArgumentException("Value cannot be null or whitespace.", nameof(builtActionPath)); } ActionPath = builtActionPath; RequestHeaders = headers; BodyContext = bodyContext; SupressedErrorCodesContext = supressedErrorCodesProvider; RequestMethod = requestMethod; }
public GetHttpRequestContext(string builtActionPath, IEnumerable <IRequestHeader> headers, ISupressedErrorCodeContext supressedCodesContext) : base(HttpMethod.Get, builtActionPath, headers, NoBodyContext.Instance, supressedCodesContext) { }