No ASP.NET CORE COMO CHECIE SE SOITOR LOCAL É LOCAL

if (Request.Host.Host == "localhost") 
{
  // do something 
}
Mysterious Macaw