Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AopContext Class

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 .

System.Object
   AopContext

[Visual Basic]
Public NotInheritable Class AopContext
[C#]
public sealed class AopContext

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

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.

Requirements

Namespace: Spring.Aop.Framework

Assembly: Spring.Aop (in Spring.Aop.dll)

See Also

AopContext Members | Spring.Aop.Framework Namespace