Reputation: 762
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.
Upvotes: 3
Views: 4408
Reputation: 19
There is an extension in .net core. To use it you need to install prerequested package which denoted below.
Upvotes: 1