Ayende @ Rahien

Unnatural acts on source code

Binsor: Native 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"
		}
	) 

Comments

Fedde
07/13/2007 04:44 PM by
Fedde

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,

 assemblies :  { assemblies : 

     Assembly.Load("MyAssembly") 

     }

)

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 ;)

Ayende Rahien
07/13/2007 04:50 PM by
Ayende Rahien

You are probably missing an import to Rhino Igloo, would be my guess, what error do you get?

Fedde
07/16/2007 08:16 AM by
Fedde

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(nhunitof_work, IUnitOfWorkFactory, NHibernateUnitOfWorkFactory)

Component(httpcontextprovider, IContextProvider, HttpContextProvider)

Component(componentrepository, ComponentRepository)

Component(testController, MyController)

Component(usercontrol, MyUserControl)

Comments have been closed on this topic.