At first, I thought that using the NinjectServiceHost class was the only way to create, for example, an instance of a non-standard implementation class. (Out of the box, you can only call the new ServiceHost (typeof (SomeClass)), where SomeClass will be created using a constructor without parameters, which does not allow dependency injection).
But now I see that I can simply use the Ninject core to retrieve singleton instances of easily validated classes (which do not implement singleton explicitly, and I would use the InSingletonScope binding for Ninject) from my service class.
What is the main use of NinjectServiceHost? What features does it provide?
source share