private void DestroyConnection() { mConnection.ConnectionOpen -= OnConnectionOpen; mConnection.ConnectionClosed -= OnConnectionClosed; mConnection.ConnectionError -= OnConnectionError; mConnection.MessageArrived -= OnMessageArrived; mConnection.Dispose(); mConnection = null; }
public void Dispose() { IControlledWampConnection <TMessage> connection = mConnection; if (connection != null) { connection.Dispose(); } }
public void Close() { lock (mLock) { if (mConnection != null) { mConnection.Dispose(); mConnection = null; } } }
public void Close() { mConnection.Dispose(); }