Ejemplo n.º 1
0
 public void Dispose()
 {
     if (_msgQueue != null && !_msgQueue.Closed)
     {
         _msgQueue.close(true);
         _msgQueue = null;
     }
 }
Ejemplo n.º 2
0
        public void Dispose()
        {
            if (_msgQueue != null && !_msgQueue.Closed)
            {
                _msgQueue.close(true);
                _msgQueue = null;
            }

            try
            {
                if (_priNagglingMgr != null && _priNagglingMgr.IsAlive)
                {
                    _priNagglingMgr.Abort();
                }

                if (_secNagglingMgr != null && _secNagglingMgr.IsAlive)
                {
                    _secNagglingMgr.Abort();
                }
            }
            catch (Exception) { }
        }