How to convert Windsor lock to free config in xml
I would like to convert this fluent approach to xml:
container.Register(
AllTypes.FromAssemblyNamed("Company.DataAccess")
.BasedOn(typeof(IReadDao<>)).WithService.FromInterface(),
AllTypes.FromAssemblyNamed("Framework.DataAccess.NHibernateProvider")
.BasedOn(typeof(IReadDao<>)).WithService.Base());
Is there a way to do this while keeping it simple?
+2
a source to share
2 answers
There is currently no way to do batch registrations in XML. If you really want to express this in XML (I wonder why), you have to list every registered component.
The closest was the party registration tool , but it's outdated.
0
a source to share