Example #1
0
 public override void CleanupTest()
 {
     m_strandScheduler.Dispose();
     m_innerScheduler.Dispose();
     m_proxyScheduler.Dispose();
     base.CleanupTest();
 }
Example #2
0
 protected void Dispose(bool disposing)
 {
     if (disposing)
     {
         m_realScheduler.Dispose();
     }
 }
Example #3
0
 public void StopListening()
 {
     _isStopping = true;
     TaskScheduler.Remove(_socketTickTask);
     TaskScheduler.Dispose();
     _reliableSocket.Close();
     _protectionManager.Stop();
 }
        public void Stop()
        {
            _taskScheduler.Dispose();
            _sendTaskId = null;

            foreach (var peer in _peerToPackets.Keys)
            {
                if (_peerToPackets.TryRemove(peer, out var q))
                {
                    lock (_sync)
                    {
                        while (q.TryDequeue(out var pack))
                        {
                            pack.Dispose();
                        }
                    }
                }
            }
        }
Example #5
0
 public override void CleanupTest()
 {
     m_threadPool.Dispose();
     base.CleanupTest();
 }
Example #6
0
 public void Dispose()
 {
     _taskScheduler.Dispose();
 }