我注意到 CaSTLe Windsor fluent 组件注册接口(interface)有相当困惑的 ActAs() 方法。
谷歌搜索它,我发现的唯一引用是在他们的 wiki here .
TODO (Stuff that could be documented)
- what does ActAs() do?
不太有帮助。
该来源似乎没有任何单元测试可以提供有关其用法的线索,而且我对他们的来源太不熟悉,无法自己告诉自己发生了什么。
有人知道更多吗?
最佳答案
它adds custom dependencies (tags)到正在注册的组件。 WcfFacility ,例如 uses these attached dependencies至set up endpoints and other stuff .
关于.net - 温莎城堡 : So what DOES ActAs do?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/485430/