Skip to content

Persist values with AsyncLocal: update to .NET 11 and add ThreadLocal and reference-type examples - #2410

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/123739-csharp-persist-values-with-asynclocal-in-async-flow
Open

vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/123739-csharp-persist-values-with-asynclocal-in-async-flow

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves the AsyncLocal sample from net9.0 to net11.0 with MSTest 4.5.3, Microsoft.NET.Test.Sdk 18.12.0 and coverlet.collector 10.1.0, fixes the DoWork log labels in AsyncLocalExample, adds AsyncLocalVsThreadLocalExample and AsyncLocalReferenceTypeExample with a test each, runs the notification example last in Program.cs, and renames the two existing tests so their names match what they assert.

…pe examples

Both projects move from net9.0 to net11.0, MSTest 4.5.3, Microsoft.NET.Test.Sdk 18.12.0 and coverlet.collector 10.1.0. AsyncLocalExample log labels now name DoWork. New AsyncLocalVsThreadLocalExample and AsyncLocalReferenceTypeExample with tests; Program.cs runs the notification example last. Test names now say what they assert.
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.

1 participant