Windsor Container: How to specify a public property should not be filled by the container?
Posted
by George Mauer
on Stack Overflow
See other posts from Stack Overflow
or by George Mauer
Published on 2008-10-07T14:06:15Z
Indexed on
2010/06/16
2:32 UTC
Read the original article
Hit count: 320
When Instantiating a class, Windsor by default treats all public properties of the class as optional dependencies and tries to satisfy them. In my case, this creates a rather complicated circular dependency which causes my application to hang.
How can I explicitly tell Castle Windsor that it should not be trying to satisfy a public property? I assume there must be an attribute to that extent. I can't find it however so please let me know the appropriate namespace/assembly.
If there is any way to do this without attributes (such as Xml Configuration or configuration via code) that would be preferable since the specific library where this is happening has to date not needed a dependency on castle.
© Stack Overflow or respective owner