我正在使用一些WebForms/MVC无关的工具,我需要获得一个HttpContext给定HttpContextBase对象引用的实例.我无法使用,HttpContext.Current因为我需要它也可以异步工作(在异步请求期间HttpContext.Current返回null).我知道HttpContextWrapper,但走错了路.
HttpContext
HttpContextBase
HttpContext.Current
null
HttpContextWrapper
asp.net-mvc httpcontext
asp.net-mvc ×1
httpcontext ×1