[Blazor] HttpTransportType.LongPolling vs IHttpContextAccessor #20674
Labels
area-blazor
Includes: Blazor, Razor Components
✔️ Resolution: Answered
Resolved because the question asked by the original author has been answered.
question
Status: Resolved
Describe the bug
I have a simple component like this:
and now I force
Then the result is a NullReferenceException for ContextAccessor.HttpContext.
First of all, is this behavior meant to be?
If so, then: How can I access the copied values? aspnet/SignalR#1684 #14167
Or: What would be an alternative approach to access headers in subsequent long polling requests?
How can I uniquely match a long polling request to the first request, if e.g. I would cache the headers myself?
Thanks!
The text was updated successfully, but these errors were encountered: