﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on Didja know? Merging Windsor configuration with automatic registration</title><description>Steve,
  
No, you can't do that from XML by default.
  
It should be pretty easy to write a facility to do this, however.
</description><link>http://ayende.com/3788/didja-know-merging-windsor-configuration-with-automatic-registration#comment6</link><guid>http://ayende.com/3788/didja-know-merging-windsor-configuration-with-automatic-registration#comment6</guid><pubDate>Thu, 01 Jan 2009 18:41:33 GMT</pubDate></item><item><title>Steve commented on Didja know? Merging Windsor configuration with automatic registration</title><description>Thanks Ayende, I like this flexibility as well - glad to see you point this out.
  
  
Speaking of:
  
  
container.Register(
  
	AllTypes.Of(typeof (ConsumerOf&lt;&gt;))
  
		.FromAssembly(typeof(Program).Assembly)
  
	);
  
  
Is that possible to do in xml right now ?
  
  
The features of adding all types of an assembly is one of my favorites, and why I end up doing it in code.  So I've been curious if that is a part of the xml capability?
  
  
So far, I love how this works with asp.net mvc
  
Using MvcContrib I register all my controllers, then all the services that the controllers use (using your syntax above), then all the DAO's that the services use.
  
  
It's a thing of beauty  :)
  
  
I blog about how to do the event wiring programmatically as well:
  
[http://blogger.forgottenskies.com/?p=295](http://blogger.forgottenskies.com/?p=295)  
  
Again, thanks for pointing out how to combine the two together!
  
  
Happy New Year!
  
  
</description><link>http://ayende.com/3788/didja-know-merging-windsor-configuration-with-automatic-registration#comment5</link><guid>http://ayende.com/3788/didja-know-merging-windsor-configuration-with-automatic-registration#comment5</guid><pubDate>Thu, 01 Jan 2009 16:56:16 GMT</pubDate></item><item><title>configurator commented on Didja know? Merging Windsor configuration with automatic registration</title><description>Heh, I guess I had that coming...
</description><link>http://ayende.com/3788/didja-know-merging-windsor-configuration-with-automatic-registration#comment4</link><guid>http://ayende.com/3788/didja-know-merging-windsor-configuration-with-automatic-registration#comment4</guid><pubDate>Thu, 01 Jan 2009 13:57:43 GMT</pubDate></item><item><title>Ayende Rahien commented on Didja know? Merging Windsor configuration with automatic registration</title><description>[http://www.google.com/search?q=castle+windsor](http://www.google.com/search?q=castle+windsor)</description><link>http://ayende.com/3788/didja-know-merging-windsor-configuration-with-automatic-registration#comment3</link><guid>http://ayende.com/3788/didja-know-merging-windsor-configuration-with-automatic-registration#comment3</guid><pubDate>Thu, 01 Jan 2009 13:33:52 GMT</pubDate></item><item><title>configurator commented on Didja know? Merging Windsor configuration with automatic registration</title><description>Excuse my ignorance; what does castle Windsor do?
</description><link>http://ayende.com/3788/didja-know-merging-windsor-configuration-with-automatic-registration#comment2</link><guid>http://ayende.com/3788/didja-know-merging-windsor-configuration-with-automatic-registration#comment2</guid><pubDate>Thu, 01 Jan 2009 13:08:40 GMT</pubDate></item><item><title>Bill Pierce commented on Didja know? Merging Windsor configuration with automatic registration</title><description>How did we ever code before Windsor?
</description><link>http://ayende.com/3788/didja-know-merging-windsor-configuration-with-automatic-registration#comment1</link><guid>http://ayende.com/3788/didja-know-merging-windsor-configuration-with-automatic-registration#comment1</guid><pubDate>Thu, 01 Jan 2009 01:16:36 GMT</pubDate></item></channel></rss>