Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IHtmlDocument has IDisposable - for what?) #1164

Closed
boraicho opened this issue Jan 23, 2024 · 1 comment
Closed

IHtmlDocument has IDisposable - for what?) #1164

boraicho opened this issue Jan 23, 2024 · 1 comment
Labels

Comments

@boraicho
Copy link

boraicho commented Jan 23, 2024

Hello all.
May someone tell me for what IHtmlDocument has IDisposable? And why it doesn't has Finalize?

Some informtaion about my app - dozen parallel async console with site parsing. And we create a lot of HtmlDocument by life cycle consoles.
I trying to Dispose all old HtmlDocument, but after that my consoles work slower.

@FlorianRappl
Copy link
Contributor

It explicitly frees resources esp. considering cyclic references or pending downloads.

Not sure what you would need finalize for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants