Inject value into injected dependency
问题 I'm having something like this: class Root { public Root(IDependency dep) {} } class Dependency:IDependency { public Dependency(int val) {} } And I'm trying to obtain a reference to Root using ninject. So i configure it like this var module = new InlineModule(mod => mod.Bind<IDependency>().To<Dependency>()); var kernel = new StandardKernel(module); I'd like to inject into Dependency some 'val' value that is known only at the moment of obtaining the Root reference from ninject. What i'd like