Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

InvalidateCacheAdvice.AfterReturning Method

Executes after targetmethod returns successfully.

[Visual Basic]
Public NotOverridable Sub AfterReturning( _
   ByVal returnValue As Object, _
   ByVal method As MethodInfo, _
   ByVal arguments As Object, _
   ByVal target As Object _
) _
    Implements IAfterReturningAdvice.AfterReturning
[C#]
public void AfterReturning(
   object returnValue,
   MethodInfo method,
   object[] arguments,
   object target
);

Parameters

returnValue
The value returned by the target.
method
The intecepted method.
arguments
The intercepted method's arguments.
target
The target object.

Implements

IAfterReturningAdvice.AfterReturning

Remarks

Note that the supplied returnValuecannot be changed by this type of advice... use the around advice type (IMethodInterceptor) if you need to change the return value of an advised method invocation. The data encapsulated by the supplied returnValue can of course be modified though.

See Also

InvalidateCacheAdvice Class | Spring.Aspects.Cache Namespace | Invoke