IUnityContainer.Resolve throws error claiming it cannot be used with type parameters

前端 未结 5 783
陌清茗
陌清茗 2020-12-22 23:46

Yesterday I\'ve implemented the code:

CustomerProductManager productsManager = container.Resolve();

It was co

5条回答
  •  余生分开走
    2020-12-23 00:17

    In my situation, I had Bootstrapper implement its own Resolve without the generic version, so it couldn't find the Microsoft's Unity Resolve. Adding the proper usings did the trick.

提交回复
热议问题