错误:
The current type is an interface and cannot be constructed. Are you missing a type mapping?
原因:
在使用DI(dependency injection)依赖注入的时候,忘记注册了。
解决:
注册一下接口和方法
container.RegisterType
The current type is an interface and cannot be constructed. Are you missing a type mapping?
最新推荐文章于 2022-08-27 22:27:05 发布