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 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].ninjectsettings override)
the bindtoself() extension method symmetric toself in normal bind chain, i.e., lets 'whatever - i'm going important bit...` , override e.g. scoping.
Comments
Post a Comment