Yes, you can use the Startable Facility (which comes out of the box with Windsor):
container.AddFacility<StartableFacility>(
f=> f.DeferredStart()
);
container.Register(
AllTypes.FromThisAssembly()
.Pick().WhateverYouWant()
.Configure(c => c.Start());
DeferredStartnew method v2.5 and you can see here what it does and why it is recommended that it be used. Samples use some new API in version 2.5, but if you are using v2.1, it should give you an idea of how to achieve this.
In previous versions, the method Start()is calledStartable()
source
share