Support ToFactory in Ninject #28

Open
magol opened this Issue Aug 20, 2012 · 1 comment

Projects

None yet

2 participants

@magol
magol commented Aug 20, 2012

If I use ToFactory in Ninject as example below, I get a "Class 'Foo' is never instantiated" on the class Foo.

public class Foo
{}

public interface IFactory
{
Foo CreateFoo()
}

Bind.ToFactory();

Foo myFoo = _myFactory.CreateFoo()

@hmemcpy
Owner
hmemcpy commented Aug 20, 2012

Hi! Thanks for reporting, but ToFactory isn't supported yet.

I'll put it in the ever-growing TODO pile.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment