有没有一种方法,以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