Ejemplo n.º 1
0
        private void Abort(Exception ex)
        {
            if (_initializing)
            {
                SendPipe.Reader.CancelPendingRead();

                _httpConnection.Context.ReceivePipe.Reader.Complete();
                _httpConnection.Context.ReceivePipe.Writer.Complete();
            }
            else
            {
                _httpConnection.Abort(ex);
            }
        }