// INITIATOR public virtual void Close() { listening = false; out_stream.WriteMessage(protocol.CloseMessage); in_stream.Close(); out_stream.Close(); }
public void Close() { _listening = false; _outStream.WriteMessage(_protocol.CloseMessage); _inStream.Close(); _outStream.Close(); _connection.Close(); }
public void Close() { if (_closed) { return; } _listening = false; _closed = true; _outStream.WriteMessage(_protocol.CloseMessage); _inStream.Close(); _outStream.Close(); _connection.Close(); _sessionListener.OnClose(); }