分支自 SuZhouGuanHong/TaiYuanTaiZhong

1
dengjunjie
2024-06-26 f7b2ab226a027c4e2b78bf332664ad6a304bb6c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
 
namespace WIDESEA_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;
        }
    }
}