protected virtual void Dispose(Boolean disposing) { if (disposing) { _idleStatusChecker.Dispose(); } }
/// <summary> /// Disposes. /// </summary> /// <param name="disposing"></param> protected override void Dispose(bool disposing) { if (disposing) { idleStatusChecker.Dispose(); } base.Dispose(disposing); }
/// <inheritdoc/> protected override void Dispose(Boolean disposing) { if (!_disposed) { if (disposing) { if (_listenSockets.Count > 0) { foreach (SocketContext ctx in _listenSockets.Values) { ctx.Close(); ((IDisposable)ctx.Socket).Dispose(); } } _idleStatusChecker.Dispose(); } _disposed = true; } base.Dispose(disposing); }