Windsor Castle :- Inject Dictionary of Interfaces via configuration

前端 未结 2 1822
礼貌的吻别
礼貌的吻别 2021-01-20 11:22

Hi i am trying to inject a dictionary of interfaces but am getting an error from castle like this :-

Castle.MicroKernel.SubSystems.Conversion.ConverterException: No

2条回答
  •  不思量自难忘°
    2021-01-20 11:44

    I've had to do something very similar. However I think it exposed a design flaw more than anything else. I refactored my app so that it did what your wrapper class does as its standard way of working. It drastically simplified the app as well.

    It was really just a matter of doing things the "Castle Windsor way" instead of trying to adapt "my way" to the Castle Windsor model. It was pretty humbling to see how much easier and better the Castle Windsor way was...

    Technically not a solution to the problem you posed but hopefully it helps you out.

提交回复
热议问题