开发者

Configure a castle windsor TypedFactory with custom selector via xml?

I have the following configuration:

container.AddFacility<TypedFactoryFacility>()
         .Register(Component.For<IMyFactory>()
                            .AsFactory(c => c.SelectedWith(new MyFactoryComponentSelector())));

The problem is that 开发者_开发百科I need to configure it with xml. Is there an equivalent xml configuration?


No there isn't. Why do that via xml? Why expose implementation details of your application to the outside world?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜