Windsor - Mass Component Registration

   edit
Follow


It’s so awesome.

I have about 1 minute for that, and the code is very self explanatory, so Im just doing a Copy&Paste from the Castle dev list:

Craig Neuwirt:

The recent changes to the kernel registration interface allows for custom registration strategies. I just added an AllTypesOf strategy to allow for the most common scenarios. Here are some examples:
- Registering all controllers in the current assembly kernel.Register( AllTypesOf<IController> .FromAssembly( Assembly.GetExecutingAssembly() ) );

Ayende:

You are taking all the fun out of Binsor :-)


     Tweet Follow @kenegozi