Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Support ToFactory in Ninject #28

Open
magol opened this Issue · 1 comment

2 participants

@magol

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

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
Something went wrong with that request. Please try again.