Ejemplo n.º 1
0
        public HttpConnection(IHttpHeaderSerializer httpHeaderSerializer, IHttpEncoding httpEncoding, ISocket socket)
        {
            if (null == httpHeaderSerializer)
                throw new ArgumentNullException(nameof(httpHeaderSerializer));
            if (null == socket)
                throw new ArgumentNullException(nameof(socket));

            _httpHeaderSerializer = httpHeaderSerializer;
            _headerDecoding = httpEncoding.HeaderDecoding;
            _socket = socket;
        }
Ejemplo n.º 2
0
 public HttpConnection(IHttpHeaderSerializer httpHeaderSerializer, IHttpEncoding httpEncoding, ISocket socket)
 {
     if (null == httpHeaderSerializer)
     {
         throw new ArgumentNullException("httpHeaderSerializer");
     }
     if (null == socket)
     {
         throw new ArgumentNullException("socket");
     }
     this._httpHeaderSerializer = httpHeaderSerializer;
     this._headerDecoding       = httpEncoding.HeaderDecoding;
     this._socket = socket;
 }