如何prevent温莎城堡的注入性的依赖?城堡、温莎、prevent

2023-09-07 08:46:03 作者:中意无拘无束

有没有一种方法,以prevent温莎城堡自动注入依赖成性(除了[DoNotWire]属性)?

Is there a way to prevent Castle Windsor from automatically injecting dependencies into properties (besides the [DoNotWire] attribute)?

推荐答案

复制:http://stackoverflow.com/questions/178611/windsor-container-how-to-specify-a-public-property-should-not-be-filled-by-the-c

另请参阅:

的http://groups.google.com/group/castle-project-users/browse%5Fthread/thread/f1ec737ff243c19d http://jfromaniello.blogspot.com/2009/07/noninjectable- service.html 的http://using.castleproject.org/display/Contrib/Castle.Facilities.OptionalPropertyInjection http://groups.google.com/group/castle-project-users/browse%5Fthread/thread/f1ec737ff243c19d http://jfromaniello.blogspot.com/2009/07/noninjectable-service.html http://using.castleproject.org/display/Contrib/Castle.Facilities.OptionalPropertyInjection