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

Make VSTHRD200 ignore DisposeAsyncCore #1238

Merged

Conversation

MartyIX
Copy link
Contributor

@MartyIX MartyIX commented Oct 6, 2023

Fixes #805

DisposeAsyncCore is recommended in https://learn.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-disposeasync#the-disposeasynccore-method and as such I believe there should be no warning for the special case.

Though @sharwell mentioned that the name might not be final here. But it's been 2.5 years so my guess is that the topic is not especially hot since nothing has seemingly happened since then.

Copy link
Member

@AArnott AArnott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@AArnott AArnott merged commit a74e8e8 into microsoft:main Oct 9, 2023
6 checks passed
@MartyIX MartyIX deleted the feature/VSTHRD200-DisposeCoreAsync-exception branch October 9, 2023 20:02
@AArnott AArnott added this to the v17.9 milestone Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VSTHRD200 reports DisposeAsyncCore
2 participants