摘要: 1.在 Startup.cs 类 ConfigureServices 方法中注入 IHttpContextAccessor;services.TryAddSingleton();2.在需要使用的类的构造函数注入... 阅读全文
posted @ 2019-06-11 11:15 Jöhan 阅读(1570) 评论(0) 推荐(0) 编辑