Closed ManHunterGroms closed 5 years ago
I finded solution, but not sure is this good. In example №2 replace BindFactory:
Container.BindFactoryCustomInterface<IFoo, Foo.Factory, IMyFooFactory>().FromFactory<CustomFooFactory>();
and implement interface IMyFooFactory in Foo.Factory class:
public class Factory : PlaceholderFactory<IFoo>, IMyFooFactory
{
}
In example code below give error:
Why I can't use interface like return value?
Another expample work fine!
but now I can't use IMyFooFactory for Injection.