摘要: 第一种方式: 在Startup中的ConfigureServices方法中注册服务: services.AddTransient<ITestServiceA, TestServiceA>(); 在控制器中通过构造函数进行注入: private readonly ITestServiceA _ITes 阅读全文
posted @ 2022-02-17 19:15 没有童话的鱼 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 最近IIS发布Core3.1项目的时候遇到下面问题,发现是缺少ASP.NET Core Runtime 解决方法:安装.netcore host 版本 阅读全文
posted @ 2022-02-17 15:47 没有童话的鱼 阅读(274) 评论(0) 推荐(0) 编辑