Conventional Bind to self and all interfaces Ninject -


is there way use ninject's conventional binding bind self , interfaces.

_container.bind(x => x.from(_assemblylist)                       .selectallclasses()                       .bindallinterfaces()); 

the code above interfaces can't seem find way bind self in same statement.

unless explicitly turn offstub out implicit self binding (by supplying ninjectsettings override)as discussed in answer me 2 years i'd forgotten about, self bindings generated on fly ninject need arises [which ugly , autofac doesn't mess... leads implementation messiness , test cases far know there no issues perspective of users of ninject].

the bindtoself() extension method symmetric toself in normal bind chain, i.e., lets 'whatever - i'm going important bit...` , override e.g. scoping.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -