public ResponseStream(HybridHttpConnection connection, RelayedHttpListenerContext context)
 {
     this.connection   = connection;
     this.context      = context;
     this.WriteTimeout = TimeoutHelper.ToMilliseconds(this.connection.OperationTimeout);
     this.asyncLock    = new AsyncLock();
 }
 public WebSocketMessageStream(WebSocket webSocket, TimeSpan readTimeout)
 {
     this.webSocket   = webSocket;
     this.ReadTimeout = TimeoutHelper.ToMilliseconds(readTimeout);
 }