Search the mailing list, it is a very new feature.

On Thu, Aug 28, 2008 at 12:44 PM, Jason Meckley <[EMAIL PROTECTED]>wrote:

>
> I'm not familiar with that. where can I find more information?
> I'm not finding anything googling "castle microkernel type forwarding"
> or in the microkernel documentation
>
> http://www.castleproject.org/container/documentation/trunk/manual/mktypedocs/index.html
> .
>
> On Aug 28, 12:11 pm, "Ayende Rahien" <[EMAIL PROTECTED]> wrote:
> > You have to explicitly specify type forwarding.
> >
> > On Thu, Aug 28, 2008 at 12:08 PM, Jason Meckley <[EMAIL PROTECTED]
> >wrote:
> >
> >
> >
> > > class Component: IServiceWithAdditionalFeatures, IAnotherService
> > > {
> > > }
> >
> > > interface IServiceWithAdditionalFeatures : IService
> > > {
> > > }
> >
> > > interface IService
> > > {
> > > }
> >
> > > interface IAnotherService
> > > {
> > > }
> >
> > > is there a way with Windsor to register the component to both
> > > services, without explicitly adding the component/services? Something
> > > like
> > >
> container.Register(Component.ForAllServices().ImplementedBy<Component>());
> > > Assert.AreEqual(container.Resolve<IService>() ==
> > > container.Resolve<IServiceWithAdditionalFeatures >());
> > > Assert.AreEqual(container.Resolve<IAnotherService>() ==
> > > container.Resolve<IServiceWithAdditionalFeatures >());
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to