public virtual void Dispose(bool disposing) { if (!disposing || _disposed) { return; } _packageFtpsClient.Dispose(); _uploadPackageResetEvent.Dispose(); Password.Dispose(); _disposed = true; }