I was considering registering some types via their attribute
(ServiceContract)

I found an example at 
http://docs.castleproject.org/Windsor.Registering-components-by-conventions.ashx
But it doesn't compile - it comes close, which is why I thought I'd
ask. I'm using 2.5.3

I was wondering if this is a typo or what version the example below is
using
AllTypes.FromAssemblyContaining<MyController>().Where(t=>Attribute.IsDefined(t,
typeof(CacheAttribute)))

If you change the "Attribute" to have an 's', it's closer, but there's
still a compile error re accessing static method in non-static
context.

AllTypes.FromAssemblyContaining<MyController>().Where(t=>Attributes.IsDefined(t,
typeof(CacheAttribute)))

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