Windsor Container: How to specify a public property should not be filled by the container?

后端 未结 7 1933
小鲜肉
小鲜肉 2021-01-01 23:32

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 rath

7条回答
  •  佛祖请我去吃肉
    2021-01-01 23:55

    DoNotWireAttribute

    • Class: http://svn.castleproject.org:8080/svn/castle/trunk/Core/Castle.Core/Attributes/DoNotWireAttribute.cs
    • Test: http://svn.castleproject.org:8080/svn/castle/trunk/InversionOfControl/Castle.Windsor.Tests/IgnoreWireTestCase.cs

提交回复
热议问题