I'm getting a compiler complaint trying to use Unless with fluent
registration: Argument not specified for parameter 'kernel' of 'Public
Shared Function ServiceAlreadyRegistered(kernel As
Castle.MicroKernel.IKernel, model As Castle.Core.ComponentModel) As
Boolean'.
Full disclosure: I am using VB.
I'm importing these namespaces: Castle.Core, Castle.Windsor,
Castle.MicroKernel.Registration
In the snippet below, Container is an IWindsorContainer:
Container.Register(Component.For(Of IUserDataProvider)() _
.ImplementedBy(Of DefaultUserDataProvider(Of
DefaultUserContext))() _
.Unless(Component.ServiceAlreadyRegistered))
I've also tried an IsInNamespace filter, and that is throwing Value of
type 'System.Predicate(Of System.Type)' cannot be converted to
'Castle.MicroKernel.Registration.ComponentFilter'.
I must be missing some dependency, but can't figure out what it might
be.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---