How to get automatic registration with Windsor lock

I recently read an Ayende blog post about auto-registration that works with XML configuration. I would like to do exactly what he does, but his piece of code does not work for me. The Register method does not exist in my container.

Here is his code:

var container = new WindsorContainer(new XmlInterpreter());
container.Register(
    AllTypes.Of(typeof (ConsumerOf<>))
        .FromAssembly(typeof(Program).Assembly)
    );

Is there a link to a DLL that I am skipping? Is Register () an extension method and I don't have a suitable namespace? I looked at the Castle Documents but cannot find a solution.

+3
source share
1 answer

Bah! Never mind. I am using RC-3, and the Register () method is only on the trunk.

+1
source

All Articles