public void Dispose() { if (ftp != null) { ftp.Dispose(); ftp = null; } }
protected virtual void Dispose(bool disposing) { if (disposing) { _client?.Dispose(); _semaphore?.Dispose(); } }
protected virtual void Dispose(bool disposing) { if (_isDisposed) { return; } if (disposing) { _client?.Dispose(); _semaphore?.Dispose(); } _isDisposed = true; }