-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add debugger display to CancellationTokenSource #107234
Conversation
Fixes dotnet#105698 Add `DebuggerDisplayAttribute` to `CancellationTokenSource` to show cancellation and disposal status. - **CancellationTokenSource.cs** - Add `DebuggerDisplayAttribute` to the `CancellationTokenSource` class. - Display the cancellation status in the `DebuggerDisplayAttribute`. - Display the disposal status in the `DebuggerDisplayAttribute`. - **DebuggerAttributes.cs** - Add a test method to validate the `DebuggerDisplayAttribute` for `CancellationTokenSource`. - Ensure the test method checks the cancellation status. - Ensure the test method checks the disposal status.
@dotnet-policy-service agree [company="Melkradar"] |
@dotnet-policy-service agree |
Thanks, but there's already an open pr for this: |
Fixes #105698
Add
DebuggerDisplayAttribute
toCancellationTokenSource
to show cancellation and disposal status.CancellationTokenSource.cs
DebuggerDisplayAttribute
to theCancellationTokenSource
class.DebuggerDisplayAttribute
.DebuggerDisplayAttribute
.DebuggerAttributes.cs
DebuggerDisplayAttribute
forCancellationTokenSource
.