Alternative to get httpcontext.current.request.url without httpcontext
I have a function that runs on new thread. I'm unable to get httpcontext in the new thread.
Is there a way to get my website URL without using httpcontext?
Thank you
Refer below links.
https://forums.asp.net/t/1776190.aspx?Alternatives+to+HttpContext+OperationContext
https://stackoverflow.com/questions/42200696/alternative-to-httpcontext-current-items
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/http-context?view=aspnetcore-5.0
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.