/// <summary> /// Initializes a new instance of the <see cref="HttpContextContainer{TRequest, TResponse}" /> class. /// </summary> /// <param name="request">The request.</param> /// <param name="response">The response.</param> /// <param name="options">The options.</param> protected HttpContextContainer(TRequest request, TResponse response, HttpContextOptions <TRequest> options) { request.CheckNullObject(nameof(request)); Request = request; response.CheckNullObject(nameof(response)); Response = response; _options = options ?? new HttpContextOptions <TRequest> { LanguageParameterKey = "lang" }; }
/// <summary> /// Initializes a new instance of the <see cref="HttpMessageContextContainer" /> class. /// </summary> /// <param name="request">The request.</param> /// <param name="response">The response.</param> /// <param name="options">The options.</param> public HttpMessageContextContainer(HttpRequestMessage request, HttpResponseMessage response, HttpContextOptions <HttpRequestMessage> options) : base(request, response, options) { }