public override void CleanupTest() { m_strandScheduler.Dispose(); m_innerScheduler.Dispose(); m_proxyScheduler.Dispose(); base.CleanupTest(); }
protected void Dispose(bool disposing) { if (disposing) { m_realScheduler.Dispose(); } }
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(); } } } } }
public override void CleanupTest() { m_threadPool.Dispose(); base.CleanupTest(); }
public void Dispose() { _taskScheduler.Dispose(); }