【发布时间】:2011-03-25 18:08:11
【问题描述】:
过去 3 年我一直是温莎城堡 IoC 容器;我正在尝试使用 Autofac 进行概念验证,但无法在 Autofac 中找到等效的温莎城堡功能。
• 在 Windsor Castle 的 IWinsorContainer API 中,有一个 Release 方法允许立即释放组件实例。 Autofac容器中是否有等效方法?
• 温莎城堡有“共享”生活方式的概念,请参阅下面的链接。 Autofac中是否有等价物? http://www.castleproject.org/container/documentation/trunk/manual/coretypedocs/Generated_PooledAttribute.html
• Windsor Castle 的 DynamicProxy 提供了一种方法拦截。我找到了下面的链接并按照 Nicholas 的说明进行操作,但在 AutofacContrib.DynamicProxy2 或他提到的源代码中找不到 IInterceptor 接口。 http://nblumhardt.com/archives/aop-with-autofac-and-dynamicproxy2/
如果您能提供任何信息,我将不胜感激!
【问题讨论】:
标签: autofac