我需要HttpContext在静态方法或实用程序服务中访问当前.
HttpContext
使用经典的ASP.NET MVC System.Web,我只是用来HttpContext.Current静态访问上下文.但是我如何在ASP.NET Core中执行此操作?
System.Web
HttpContext.Current
c# asp.net-core
asp.net-core ×1
c# ×1