Fighting the Evil XML, Take 2
David Haydem posts about using Windsor, I thought that I would take a shot at duplicating his configuration using Binsor.
You can check his post for the XML configuration, but that was 25 lines of code. The Binsor code is 6 lines :-)
import BlogDataServices
import DatabaseServices
connectionString = "Data Source=localhost;Initail Catalog=test;Trusted_Connection=Yes;"
Component(MyDatabase, IDatabase, SqlDatabase).connectionString = connectionString
Component(MyBlogDataService, IBlogDataService, MyBlogDataService, Lifestyle.Transient)
Component(HerBlogDataService, IBlogDataService, HerBlogDataService, Lifestyle.Transient)
Comments
Comment preview