Exemplo n.º 1
0
 // INITIATOR
 public virtual void  Close()
 {
     listening = false;
     out_stream.WriteMessage(protocol.CloseMessage);
     in_stream.Close();
     out_stream.Close();
 }
Exemplo n.º 2
0
 public void Close()
 {
     _listening = false;
     _outStream.WriteMessage(_protocol.CloseMessage);
     _inStream.Close();
     _outStream.Close();
     _connection.Close();
 }
Exemplo n.º 3
0
        public void Close()
        {
            if (_closed)
            {
                return;
            }

            _listening = false;
            _closed    = true;
            _outStream.WriteMessage(_protocol.CloseMessage);
            _inStream.Close();
            _outStream.Close();
            _connection.Close();
            _sessionListener.OnClose();
        }