You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/advanced/interceptors.rst
+3-14
Original file line number
Diff line number
Diff line change
@@ -85,18 +85,7 @@ Under the covers, ``EnableInterfaceInterceptors()`` creates an interface proxy t
85
85
Both techniques can be used in conjunction with the assembly scanning support, so you can configure batches of components using the same methods.
86
86
87
87
**Special case: WCF proxy and remoting objects**
88
-
While WCF proxy objects *look* like interfaces, the ``EnableInterfaceInterceptors()`` mechanism won't work because, behind the scenes, .NET is actually using a ``System.Runtime.Remoting.TransparentProxy`` object that behaves like the interface. If you want interception on a WCF proxy, you need to use the ``InterceptTransparentProxy()`` method.
While WCF proxy objects *look* like interfaces, the ``EnableInterfaceInterceptors()`` mechanism won't work because, behind the scenes, the .NET desktop framework is actually using a ``System.Runtime.Remoting.TransparentProxy`` object that behaves like the interface. As of v6.0.0 of ``Autofac.Extras.DynamicProxy`` the ability to intercept ``TransparentProxy`` objects was removed in an effort to improve cross-platform support.
100
89
101
90
.. _associate_interceptors:
102
91
@@ -186,7 +175,7 @@ To enable proxying via interfaces, the component must provide its services throu
186
175
WCF Proxies
187
176
-----------
188
177
189
-
As mentioned earlier, WCF proxies and other remoting types are special cases and can't use standard interface or class interception. You must use ``InterceptTransparentProxy()`` on those types.
178
+
As mentioned earlier, WCF proxies and other remoting types are special cases and can't use standard interface or class interception.
190
179
191
180
Class Interceptors and UsingConstructor
192
181
---------------------------------------
@@ -223,4 +212,4 @@ One, you can remove your direct Castle.Core reference. The transitive references
223
212
224
213
Two, if you can't remove your direct reference or removing it doesn't work... all of the direct dependencies you have will need to update to version 4.2.0 or higher of Castle.Core. You'll have to file issues with those projects; it's not something Autofac can fix for you.
225
214
226
-
`For reference, here's the Castle.Core issue discussing this challenge. <https://github.com/castleproject/Core/issues/288>`_
215
+
`For reference, here's the Castle.Core issue discussing this challenge. <https://github.com/castleproject/Core/issues/288>`_
0 commit comments