You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Remo
How about splitting the FuncModule into a FactoryModule (everything except .Bind(typeof(Func<...)) and a FuncFactoryModule?
This would allow for easier opt-out from Func<..>. The open Func<....> binding may hide issues with bindings when one wants to bind specific Func<MyFoo, MyBar>().
Hi Remo
How about splitting the FuncModule into a FactoryModule (everything except
.Bind(typeof(Func<...))
and aFuncFactoryModule
?This would allow for easier opt-out from
Func<..>
. The openFunc<....>
binding may hide issues with bindings when one wants to bind specificFunc<MyFoo, MyBar>()
.See http://stackoverflow.com/questions/24862138/stop-ninject-from-binding-funct-t-bool-automatically/24863850.
One could further provide an extension like
or just
to simplify binding specific factories.
Please tell me whether you like the idea - in which case i'll happily provide pull request - or not.
EDIT: this is a duplicate of #21
The text was updated successfully, but these errors were encountered: