private void DestroyConnection()
        {
            mConnection.ConnectionOpen   -= OnConnectionOpen;
            mConnection.ConnectionClosed -= OnConnectionClosed;
            mConnection.ConnectionError  -= OnConnectionError;
            mConnection.MessageArrived   -= OnMessageArrived;

            mConnection.Dispose();
            mConnection = null;
        }
示例#2
0
        public void Dispose()
        {
            IControlledWampConnection <TMessage> connection = mConnection;

            if (connection != null)
            {
                connection.Dispose();
            }
        }
示例#3
0
 public void Close()
 {
     lock (mLock)
     {
         if (mConnection != null)
         {
             mConnection.Dispose();
             mConnection = null;
         }
     }
 }
示例#4
0
 public void Close()
 {
     mConnection.Dispose();
 }