摘要: 在.NET CORE 中,依赖注入非常常见, 在原先的 HttpContext中常用的server.Mappath已经么有了如下: HttpContext.Current.Server.MapPath(“xx“) 取而代之的是IHostingEnvironment 环境变量 可以通过依赖注入方式来使 阅读全文
posted @ 2019-03-28 22:18 冰封的心 阅读(2121) 评论(1) 推荐(0) 编辑