You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
374 B
C#

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