Questions tagged [ninject-3]

17 questions
0
votes
1 answer

Ninject Constructor Binding

I'm using NInject. I have an object like this interface IFoo {} class Foo : IFoo { public Foo(string magic, IBar bar) {} } I want to be able to inject some foo by passing only the magic. The magic is different for each class, so this should…
Jeff Foster
  • 43,770
  • 11
  • 86
  • 103
0
votes
1 answer

Getting "The resource cannot be found." error when using Ninject

I'm working on an ASP.NET MVC 3.0 application, using Ninject as my dependency injection framework. So I've inherited my controller from NinjectHttpApplication like so: public class MvcApplication : NinjectHttpApplication { protected override…
Jonathan
  • 32,202
  • 38
  • 137
  • 208
1
2