20 lines
460 B
C#
20 lines
460 B
C#
![]() |
using Microsoft.AspNetCore.Http;
|
|||
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace VOL.Core.Utilities
|
|||
|
{
|
|||
|
public static class HttpContext
|
|||
|
{
|
|||
|
private static IHttpContextAccessor _accessor;
|
|||
|
|
|||
|
public static Microsoft.AspNetCore.Http.HttpContext Current => _accessor.HttpContext;
|
|||
|
|
|||
|
internal static void Configure(IHttpContextAccessor accessor)
|
|||
|
{
|
|||
|
_accessor = accessor;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|