Will the following code in Ninject use the same instance of UnitOfWork for both bindings, or will two total instances per request be created, one for each binding?
Bind<IUnitOfWork>().To<UnitOfWork>().InRequestScope();
Bind<UnitOfWork>().To<UnitOfWork>().InRequestScope();
If the former is not the case, how can I make requests for IUnitOfWork and UnitOfWork both activate the same UnitOfWork instance for the same request?
I have a module where one of the internal classes depends on a property in the specific implementation of IUnitOfWork which is why I need the self-binding as well.
Ninject 3.0.0 allows you to