I recently read Ayende's blog post on automatic registration working with XML Configuration. I would like to do exactly what he does, but his code snippet doesn't work for me. The Register method doesn't exist on my container object.
Here's his code:
var container = new WindsorContainer(new XmlInterpreter());
container.Register(
AllTypes.Of(typeof (ConsumerOf<>))
.FromAssembly(typeof(Program).Assembly)
);
Is there a DLL reference I'm missing? Is Register() an extension method and I don't have the right namespace referenced? I've looked at the Castle Docs but can't seem to find a solution.