private void DisposeSocketPool() { sendTokenManager.Clear(); if (sBufferManager != null) { sBufferManager.Clear(); } }
protected virtual void Dispose(bool isDisposing) { if (_isDisposed) { return; } if (isDisposing) { DisposeSocketPool(); sendSocket.Dispose(); sendBufferManager.Clear(); _isDisposed = true; } }
protected virtual void Dispose(bool isDisposing) { if (_isDisposed) { return; } if (isDisposing) { DisposeSocketPool(); clientSocket.Dispose(); sentBufferPool.Clear(); _isDisposed = true; } }
protected virtual void Dispose(bool isDisposing) { if (_isDisposed) { return; } if (isDisposing) { DisposeSocketPool(); receiveBufferPool.Clear(); svcReceiveSocket.Dispose(); _isDisposed = true; } }
protected virtual void Dispose(bool isDisposing) { if (_isDisposed) { return; } if (isDisposing) { DisposeSocketPool(); svcSocket.Dispose(); recvBufferManager.Clear(); sendBufferManager.Clear(); _isDisposed = true; maxNumberAcceptedClients.Dispose(); } }
protected virtual void Dispose(bool isDisposing) { if (_isDisposed) { return; } if (isDisposing) { acceptSemphoreClients.Dispose(); DisposeSocketPool(); svcSkt.Dispose(); recvBuffer.Clear(); sendBuffer.Clear(); _isDisposed = true; } }
private void DisposeSocketPool() { _sendTokenManager.Clear(); _sBufferManager?.Clear(); }