如何prevent温莎城堡的注入性的依赖? [英] How to prevent Castle Windsor from injecting property dependencies?

查看:221
本文介绍了如何prevent温莎城堡的注入性的依赖?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

推荐答案

复制:<一href="http://stackoverflow.com/questions/178611/windsor-container-how-to-specify-a-public-property-should-not-be-filled-by-the-c">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

这篇关于如何prevent温莎城堡的注入性的依赖?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆