Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractLoggingAdvice.Invoke Method

Adds logging to the method invocation.

[Visual Basic]
Public NotOverridable Sub Invoke( _
   ByVal invocation As IMethodInvocation _
) _
    Implements IMethodInterceptor.Invoke
public object Invoke(
   IMethodInvocation invocation


The method invocation that is being intercepted.

Return Value

The result of the call to the Proceed method of the supplied invocation; this return value may well have been intercepted by the interceptor.




The method IsInterceptorEnabled is called as an optimization to determine if logging should be applied. If logging should be applied, the method invocation is passed to the InvokeUnderLog method for handling. If not, the method proceeds as normal.


Exception Type Condition
Exception If any of the interceptors in the chain or the target object itself throws an exception.

See Also

AbstractLoggingAdvice Class | Spring.Aspects.Logging Namespace