using Microsoft.AspNetCore.Http; namespace EC.Utils { /// /// HttpContext /// 版 本:V3.0.0 /// 版 权:EasyCode /// 作 者:LXC /// public static class HttpContext { private static IHttpContextAccessor _httpContextAccessor; public static void Configure(IHttpContextAccessor httpContextAccessor) { _httpContextAccessor = httpContextAccessor; } public static Microsoft.AspNetCore.Http.HttpContext Current { get { return _httpContextAccessor.HttpContext; } } } }