How to convert Castle Windsor fluent config to xml
Posted
by Jonathas Costa
on Stack Overflow
See other posts from Stack Overflow
or by Jonathas Costa
Published on 2010-04-14T02:20:23Z
Indexed on
2010/04/14
2:22 UTC
Read the original article
Hit count: 280
castle-windsor
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 any way of doing this, maintaining the simplicity?
© Stack Overflow or respective owner