Skip to content

Conversation

@claudiamurialdo
Copy link
Collaborator

The static HttpContext.Current property returns null when the calling-thread is not the same thread that was associated with the current HTTP request/response, because HttpContext.Current uses thread-local storage.
To address this, a workaround is added specifically for calls from objects with UseBigStack enabled. Which resolves the wrong value returned by the GxHttpContext.IsHttpContext method.
Issue:106662

…-thread is not the same thread that was associated with the current HTTP request/response.

Add a workaround for it when called from objects with UseBigStack enabled.
@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@claudiamurialdo claudiamurialdo merged commit 39d264f into master Jan 24, 2024
@claudiamurialdo claudiamurialdo deleted the big-stack-current-httpcontext branch January 24, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants