'Getting an IServiceProvider from Ninject
I'm currently working at a discord bot and the CommandHandler needs an IServiceProvider for the Dependency Injection but I do use Ninject does anyone know a way to retrieve a ServiceProvider from Ninject? So that my binded Modules are inside the ServiceProvider?
Couldn't figure it out myself.
I would appreciate some help :)
Solution 1:[1]
The StandardKernel
implicitly implemented IServiceProvider
interface.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Scott Xu |