You can only use TryGetCurrentRequest()
in AppHost’s which make the Request Context available as a singleton like ASP.NET.
See this post on how to enable it in .NET Core however it’s not recommended as it incurs a performance penalty.
You can only use TryGetCurrentRequest()
in AppHost’s which make the Request Context available as a singleton like ASP.NET.
See this post on how to enable it in .NET Core however it’s not recommended as it incurs a performance penalty.