﻿<?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>Dave Newman commented on Setting up Windsor for auto registration of components</title><description>Perfect timing Ayende!  I was just looking at how unnecessarily big my windsor config file was.
</description><link>http://ayende.com/2528/setting-up-windsor-for-auto-registration-of-components#comment6</link><guid>http://ayende.com/2528/setting-up-windsor-for-auto-registration-of-components#comment6</guid><pubDate>Tue, 12 Jun 2007 01:13:06 GMT</pubDate></item><item><title>Ayende Rahien commented on Setting up Windsor for auto registration of components</title><description>The "home.controller" convention.
  
I just looked at the code, and it looks like it i not actually need, though.
</description><link>http://ayende.com/2528/setting-up-windsor-for-auto-registration-of-components#comment5</link><guid>http://ayende.com/2528/setting-up-windsor-for-auto-registration-of-components#comment5</guid><pubDate>Fri, 08 Jun 2007 16:56:49 GMT</pubDate></item><item><title>hammett commented on Setting up Windsor for auto registration of components</title><description>&gt; Using MonoRail, I need to make sure that the 
  
&gt; names that I register the component under will 
  
&gt; follow the MR convention, so MR will resolve 
  
&gt; them magically from the container.
  
  
Not sure I'm following you here. What convention?
</description><link>http://ayende.com/2528/setting-up-windsor-for-auto-registration-of-components#comment4</link><guid>http://ayende.com/2528/setting-up-windsor-for-auto-registration-of-components#comment4</guid><pubDate>Fri, 08 Jun 2007 16:43:28 GMT</pubDate></item><item><title>joeyDotNet commented on Setting up Windsor for auto registration of components</title><description>Yep, using the Windsor facility with MonoRail is a joy.  Now if I could just find the time to start using Binsor for configuration.  Sometimes my Windsor xml configs can get quite large.  From what I've seen, Binsor can greatly reduce the size...
</description><link>http://ayende.com/2528/setting-up-windsor-for-auto-registration-of-components#comment3</link><guid>http://ayende.com/2528/setting-up-windsor-for-auto-registration-of-components#comment3</guid><pubDate>Fri, 08 Jun 2007 10:47:43 GMT</pubDate></item><item><title>Ayende Rahien commented on Setting up Windsor for auto registration of components</title><description>Well, it depends on how you want to handle that.
  
Right now I have to use web forms, so the View has a public property with the right type, so when it is initialized, it ask the controller for the instance, and it gets that.
  
It looks something like this:
  
  
public class HomePage : BasePage
  
{
  
   public HomeController Controller { get {} set { } }
  
  
  public void Page_Load(object sender, EventArgs e)
  
  {
  
     PoliciesRepeater.DataSource = Controller.GetPolicies();
  
     DataBind();
  
  }
  
}
  
  
Using MonoRail, I need to make sure that the names that I register the component under will follow the MR convention, so MR will resolve them magically from the container.
</description><link>http://ayende.com/2528/setting-up-windsor-for-auto-registration-of-components#comment2</link><guid>http://ayende.com/2528/setting-up-windsor-for-auto-registration-of-components#comment2</guid><pubDate>Fri, 08 Jun 2007 10:35:54 GMT</pubDate></item><item><title>Jeremy Miller commented on Setting up Windsor for auto registration of components</title><description>That's only half the battle though.  How do you retrieve these things later?  IoC.Resolve&lt;What?&gt;(?)
  
  
I don't use it as much anymore, but I've always done this kind of thing with StructureMap's attributes where I can specify the instance name.
</description><link>http://ayende.com/2528/setting-up-windsor-for-auto-registration-of-components#comment1</link><guid>http://ayende.com/2528/setting-up-windsor-for-auto-registration-of-components#comment1</guid><pubDate>Fri, 08 Jun 2007 09:20:50 GMT</pubDate></item></channel></rss>