BinsorNative Facilities Support
Okay, I intended to post about this in more details, but I want to wrap up this day, I added support for native facilities in Binsor. By native I mean facilities that expect to be configured by Windsor XML configuration. Since I am mostly the only one that is writing Binsor based facilities, this has been a problem when people wanted to use the standard facilities.
You can see the syntax here, very Yaml like, I think :-)
I am going to post soon about how I managed to get this syntax to work.
Facility("loggerFacility", LoggingFacility, loggingApi: "Log4net", configFile: "Config/log4net.config", NestedConfig: { something: "foo", bar: "nar" } )
More posts in "Binsor" series:
- (08 Dec 2007) Shove Those Imports To Another File
- (06 Dec 2007) Cross file extensibility
- (11 Jun 2007) Native Facilities Support
Comments
First of all I have to say that I'm really fond of the Rhino tools, which has taken me to the following..
Currently I'm trying to configure Rhino.Igloo through Binsor
But I'm currently stuck at with how to configure to BijectionFacility..
This is what I have:
Facility("bijectionfacility", BijectionFacility,
)
What am I missing at this point?
Off course a complete example of how Rhino.Igloo in combination with Binsor works would also be much appreciated ;)
You are probably missing an import to Rhino Igloo, would be my guess, what error do you get?
No that's no the problem, see the contents of my boo-file below..
The problem is that in the Init the following is true:
assemblyConfig.Children.Count == 0
import System.Reflection
import Rhino.Commons
import Rhino.Igloo
AdditionalFunctionalityFacility()
Facility("bijectionfacility", BijectionFacility, assemblies: {assemblies: Assembly.Load("MyAssembly")})
Component(default_repository, IRepository, NHRepository)
Component(nh_unit_of_work, IUnitOfWorkFactory, NHibernateUnitOfWorkFactory)
Component(httpcontextprovider, IContextProvider, HttpContextProvider)
Component(componentrepository, ComponentRepository)
Component(testController, MyController)
Component(usercontrol, MyUserControl)
Comment preview