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.
source
share