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

后端 未结 7 1873
小鲜肉
小鲜肉 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:43

    I created a facility to help with this:

    • Castle.Facilities.OptionalPropertyInjection

提交回复
热议问题