Describe the bug
I use in my project an AsyncLocal<> state object instanciated in kestrel middleware pipeline.
When kestrel deserialize or serialize json objects, AsyncLocal<> state object is NULL when I launch a stress test.
To Reproduce
I've created a thread on stack overflow with all code snippets here
Let me know if I need to copy/paste the content.
Expected behavior
I would expect AsyncLocal<> state not to be null as serialization/deserialization occurs after entering middleware, not before.
Describe the bug I use in my project an AsyncLocal<> state object instanciated in kestrel middleware pipeline. When kestrel deserialize or serialize json objects, AsyncLocal<> state object is NULL when I launch a stress test.
To Reproduce I've created a thread on stack overflow with all code snippets here Let me know if I need to copy/paste the content.
Expected behavior I would expect AsyncLocal<> state not to be null as serialization/deserialization occurs after entering middleware, not before.