摘要: 1、NuGet安装 Microsoft.AspNetCore.Http 2、services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>(); 3、获取 1 HttpContextAccessor context = new Htt 阅读全文
posted @ 2021-01-20 13:45 PrintY 阅读(1033) 评论(0) 推荐(0)