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?
精彩评论