Loading modules in all assemblies in Ninject

后端 未结 4 1076
遥遥无期
遥遥无期 2021-01-31 06:12

I have couple of class libraries in my project and all are using Ninject IoC container. I wanted to load all the modules in a StandardKernel at one go

4条回答
  •  失恋的感觉
    2021-01-31 06:27

    Another thing you should check is if the class that extends NinjectModule is public, otherwise it wont be visible in the Assembly.

提交回复
热议问题