I am trying to rewrite this line of code HttpContext.Current.Request.ServerVariables["HTTP_HOST"]
it cant find current it doesn't contain a definition.
Asked
Active
Viewed 2,782 times
3
-
https://stackoverflow.com/a/63460106/1273882 – Ankush Jain Mar 31 '22 at 14:00
1 Answers
1
There is an extension in .net core. To use it you need to install prerequested package which denoted below.

Ulas
- 19
- 4