yl
2024-08-01 a9d1e957fe07021732af58ab75e79c0bd00644a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
 
namespace VueWebCoreApi.Quartz
{
    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;
        }
    }
}