This class contains various static (Shared in Visual Basic) methods used to obtain information about the current AOP invocation.
For a list of all members of this type, see AopContext Members .
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
The static (Shared in Visual Basic)CurrentProxy property is usable if the AOP framework is configured to expose the current proxy (not the default)... it returns the AOP proxy in use. Target objects or advice can use this to make advised calls. They can also use it to find advice configuration.
To expose the current proxy, set the ExposeProxy property on the controlling proxy to true. The default value for the ExposeProxy property is false, for performance reasons.
Note The AOP framework does not expose proxies by default, as there is a performance cost in doing so.
The functionality in this class might be used by a target object that needed access to resources on the invocation. However, this approach should not be used when there is a reasonable alternative, as it makes application code dependent on usage under AOP and the Spring.NET AOP framework.
Assembly: Spring.Aop (in Spring.Aop.dll)