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
-~----------~----~----~----~------~----~------~--~---