hmemcpy / AgentMulder

** THIS PLUGIN IS NO LONGER MAINTAINED. PLEASE FOLLOW ERNICOMMUNITY FOR UPDATES **
https://github.com/ERNICommunity/AgentMulder
MIT License
151 stars 33 forks source link

Support ToFactory in Ninject #28

Open magol opened 12 years ago

magol commented 12 years ago

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 commented 12 years ago

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

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

Thanks!