using Common.Extensions.AutofacManager; using Microsoft.AspNetCore.Http; namespace Common.Utilities { public static class HttpContextUtil { private static IHttpContextAccessor _accessor = AutofacContainerModule.GetService(); public static Microsoft.AspNetCore.Http.HttpContext Current => _accessor.HttpContext; } }