17 lines
424 B
C#
Executable File
17 lines
424 B
C#
Executable File
using Microsoft.AspNetCore.Http;
|
|
|
|
namespace Opsoft.NetCore.O3App.Shared
|
|
{
|
|
public static class HttpContextConfig
|
|
{
|
|
private static IHttpContextAccessor _accessor;
|
|
|
|
public static Microsoft.AspNetCore.Http.HttpContext Current => _accessor.HttpContext;
|
|
|
|
internal static void Configure(IHttpContextAccessor accessor)
|
|
{
|
|
_accessor = accessor;
|
|
}
|
|
}
|
|
}
|