Ignore all base-class properties on Controllers when registering

Krzysztof

On 07/09/2011 1:41 PM, Jeff N wrote:
I understand that in Windsor 3 the design was changed so that optional
dependencies try to get resolved via an ILazyComponentLoader

I have a basic ILazyComponentLoader that does

Component.For(serviceType).Named(key)

This change breaks a TON of things in the solution, including all
ASP .NET MVC controllers (since an object property type (Model) on the
ControllerBase class is now injected with the wrong type.

Any suggestions on how to work around this? Essentially I just want to
revert to the old behavior by which optional dependencies are not
lazily loaded. Is there any way I get get the dependency being
resolved in context of my lazy component loader, so I can check if
it's optional and return null if true?

Thanks.


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