MethodExecutionTag
User-defined state information whose lifetime is linked to the current method execution. Aspects derived from IOnMethodBoundaryAspect should use this property to save state information between different events (OnEntry(MethodExecutionArgs), OnExit(MethodExecutionArgs) and OnException(MethodExecutionArgs)).
Declaration
public object MethodExecutionTag { get; set; }
Property Value
Type | Description |
---|---|
object |
Remarks
note
As a result of weaving optimizations, value of this property may be seen as null
in a debugger.
If you need to inspect the value in runtime, consider disabling aspect optimizations in the debug build configuration.