我有ExperienceAppService实现接口的应用服务IExperienceAppService。
我尝试使用 Scrutoк 进行自动注册
我在启动文件中有这段代码
services.Scan(scan =>
scan.FromCallingAssembly()
.AddClasses()
.AsMatchingInterface());
它应该注册接口。但我得到了这个错误
尝试激活“TooSeeWeb.Controllers.ExperienceController”时无法解析“TooSeeWeb.Core.Interfaces.Experiences.IExperienceAppService”类型的服务。
我的麻烦在哪里?