ASP.NET 对家庭控制器的核心常量请求

ASP.NET Core constant requests to home controller

我有一个 ASP.NET Core MVC 应用程序托管在 Google Compute Engine 上,当我检查日志时,似乎 www.mysite.com/home/index 一直在被请求,即使我没有在我的浏览器中搜索 URL,没有其他人知道实际的 URL。为什么是这样?我担心它可能会干扰我的某些流程。

我是 运行 Windows Server 2016 上的应用程序,我经常远程桌面进入它。这些可能是我收到日志的原因吗?

{"@t":"2019-01-01T09:37:24.4301536Z","@m":"Request starting HTTP/1.1 GET http://10.142.0.4/  ","@i":"ca22a1cb","Protocol":"HTTP/1.1","Method":"GET","ContentType":null,"ContentLength":null,"Scheme":"http","Host":"10.142.0.4","PathBase":"","Path":"/","QueryString":"","HostingRequestStartingLog":"Request starting HTTP/1.1 GET http://10.142.0.4/  ","EventId":{"Id":1},"SourceContext":"Microsoft.AspNetCore.Hosting.Internal.WebHost","RequestId":"0HLJFPIU5NJ9V:00000001","RequestPath":"/","CorrelationId":null,"ConnectionId":"0HLJFPIU5NJ9V"}
{"@t":"2019-01-01T09:37:24.5299320Z","@m":"Route matched with \"{action = \\"Index\\", controller = \\"Home\\"}\". Executing action \"TelebotApplication.Controllers.HomeController.Index (TelebotApplication)\"","@i":"a44c0341","RouteData":"{action = \"Index\", controller = \"Home\"}","ActionName":"TelebotApplication.Controllers.HomeController.Index (TelebotApplication)","EventId":{"Id":1},"SourceContext":"Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker","ActionId":"dc996f72-2933-4b90-9a5e-ccbfe11d91ba","RequestId":"0HLJFPIU5NJ9V:00000001","RequestPath":"/","CorrelationId":null,"ConnectionId":"0HLJFPIU5NJ9V"}
{"@t":"2019-01-01T09:37:24.5405482Z","@m":"Executing action method \"TelebotApplication.Controllers.HomeController.Index (TelebotApplication)\" - Validation state: Valid","@i":"dad538d7","ActionName":"TelebotApplication.Controllers.HomeController.Index (TelebotApplication)","ValidationState":"Valid","EventId":{"Id":1},"SourceContext":"Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker","ActionId":"dc996f72-2933-4b90-9a5e-ccbfe11d91ba","RequestId":"0HLJFPIU5NJ9V:00000001","RequestPath":"/","CorrelationId":null,"ConnectionId":"0HLJFPIU5NJ9V"}
{"@t":"2019-01-01T09:37:24.5441766Z","@m":"Executed action method \"TelebotApplication.Controllers.HomeController.Index (TelebotApplication)\", returned result \"Microsoft.AspNetCore.Mvc.ViewResult\" in 0.4835ms.","@i":"50a9e262","ActionName":"TelebotApplication.Controllers.HomeController.Index (TelebotApplication)","ActionResult":"Microsoft.AspNetCore.Mvc.ViewResult","ElapsedMilliseconds":0.48350000000000004,"EventId":{"Id":2},"SourceContext":"Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker","ActionId":"dc996f72-2933-4b90-9a5e-ccbfe11d91ba","RequestId":"0HLJFPIU5NJ9V:00000001","RequestPath":"/","CorrelationId":null,"ConnectionId":"0HLJFPIU5NJ9V"}

这似乎无休止地重复。

谢谢

when I check the logs, it seems that www.mysite.com/home/index is constantly being requested even though I am not searching that URL in my browser and nobody else knows the actual URL

此问题是Health checking您在GCP中配置造成的。

The issue I am facing, is occassionally, public static void Main(string[] args) is re-entered without my instruction.

对于这个问题,一般是应用回收引起的。请求中的异常不会使应用程序回收。