OpenAuth.Net/Infrastructure/Utilities/HttpContext.cs
2020-10-22 14:59:36 +08:00

14 lines
389 B
C#

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