John, yes - Base() is enough, see Base_uses_both_types_from_BasedOn_if_implemented_generically_twice test in "src\Castle.Windsor.Tests\Registration\WithServiceTestCase.cs"
HTH, Krzysztof On Jan 28, 8:20 am, John Simons <[email protected]> wrote: > Actually according > tohttp://github.com/castleproject/Castle.Windsor/blob/2.5.x/src/Castle.... > I only need WithService.Base() > > Yeah I want to register the closed versions of the interface hence the > reason I have WithService.Base(). > > Cheers > John > > On Jan 28, 9:03 am, José F. Romaniello <[email protected]> wrote: > > > 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-conven... > > > > 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.
