You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hello, i was trying the hybrid cache and noticed that when I'm inside the factory of the new hybridcache in GetOrCreateAsync and tried to access httpcontext but it was null.
this is when I'm inside the factory and try to access httpcontext to get user Identity or empty Guid and as you can see its empty
and after I'm out of the cache in the same request I can access it and its filled:
Reproduction Steps
injecting IHttpContextAccessor and then try to access it inside factory of GetOrCreateAsync
Expected behavior
i was expecting it to be filled current user identity
Actual behavior
and because httpcontextaccessor was null i get empty guid
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered:
Description
hello, i was trying the hybrid cache and noticed that when I'm inside the factory of the new hybridcache in GetOrCreateAsync and tried to access httpcontext but it was null.
this is when I'm inside the factory and try to access httpcontext to get user Identity or empty Guid and as you can see its empty
and after I'm out of the cache in the same request I can access it and its filled:
Reproduction Steps
injecting IHttpContextAccessor and then try to access it inside factory of GetOrCreateAsync
Expected behavior
i was expecting it to be filled current user identity
Actual behavior
and because httpcontextaccessor was null i get empty guid
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: