public HttpConnectionLoop( Stream tcpConnection, IHttpKeepAliveService keepAliveService, IHttpSessionFactory httpSessionFactory) { _connection = tcpConnection ?? throw new ArgumentNullException(nameof(tcpConnection)); _keepAliveService = keepAliveService ?? throw new ArgumentNullException(nameof(keepAliveService)); _httpSessionFactory = httpSessionFactory ?? throw new ArgumentNullException(nameof(httpSessionFactory)); }
public HttpSession( Stream connection, TcpSettings tcpSettings, IContent content, IContentSettingsReadOnly contentSettings, IHttpKeepAliveService keepAliveService, IHttpRequestInternal request, IHttpResponseInternal response) { Validation.RequireValidTcpSettings(tcpSettings); _tcpSettings = tcpSettings; _connection = connection ?? throw new ArgumentNullException(nameof(connection)); _content = content ?? throw new ArgumentNullException(nameof(content)); _contentSettings = contentSettings ?? throw new ArgumentNullException(nameof(contentSettings)); _keepAliveService = keepAliveService ?? throw new ArgumentNullException(nameof(keepAliveService)); _request = request ?? throw new ArgumentNullException(nameof(request)); _response = response ?? throw new ArgumentNullException(nameof(response)); }