Is it possible to perform some custom processing when Windsor instantiates a type?
Something similar to:
container.Register(
AllTypes.Pick()
.FromAssembly(Assembly.GetExecutingAssembly())
.BasedOn<MyMarkerInterface>()
.WhenInstantiating(instance => // do some stuff with this instance)
.Configure(component => component.Startable().LifeStyle.Singleton)
.WithService.Base());
Currently we are using IStartable. Since the "Start" code (i.e. the custom processing) is identical it would be nice to move this logic out of each class.
Thanks! Brian