Windsor Castle: register open generics and more complex types with

Is it possible that Castle Windsor will register open generics, where the generic parameter is the interface.

i.e. I want to allow IFruitFactory<IApple>and receive FruitFactory<Apple>? I would like to do this for any class that implements IFruit and has an interface named = i (FruitName)

in this case Apple : IAppleandIApple : IFruit

+3
source share
2 answers

Take a look at ILazyComponentLoaders .

+1
source

I do not think that's possible.

Perhaps you can identify

IWindsorInstaller<T>

somehow in particular for IFruitFactory <T>

T, . , .

0

All Articles