예제 #1
0
 public void Dispose()
 {
     if (ftp != null)
     {
         ftp.Dispose();
         ftp = null;
     }
 }
예제 #2
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _client?.Dispose();
         _semaphore?.Dispose();
     }
 }
예제 #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (_isDisposed)
            {
                return;
            }

            if (disposing)
            {
                _client?.Dispose();
                _semaphore?.Dispose();
            }

            _isDisposed = true;
        }