2011/1/27 John Simons <[email protected]>

> But this only registers the first interface right?
>

Not the first interface, but the IAuthorize<> interface... closed version.
read here:
http://stw.castleproject.org/Windsor.Registering-components-by-conventions.ashx#Additional_filtering_and_configuration_5



>
> So I think I need to use both WithService.AllInterfaces() +
> WithService.Base().
> Something
> like:
> .BasedOn(typeof(IAuthorise<>)).WithService.Base().WithService.AllInterfaces()
>

I think "BasedOn(typeof(IAuthorize<>)).WithService.AllInterfaces()" will
be enough because allinterfaces include IAUthorize too ?

OTOH the intention of the fluent api is something like:

.BasedOn(...)
   .WithService....
.BasedOn(..)
   .WithService
or
.Where(..)
   .WithService

One WithService per each "enumeration".. or something like that.

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