Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

Support ToFactory in Ninject #28

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

Support ToFactory in Ninject #28

magol opened this issue Aug 20, 2012 · 1 comment

Comments

@magol
Copy link

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
Copy link
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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants