Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AbstractLoggingAdvice.IsInterceptorEnabled Method

Determines whether the interceptor is enabled for the specified invocation, that is, whether the method InvokeUnderLog is called.

[Visual Basic]
Protected Overridable Sub IsInterceptorEnabled( _
   ByVal invocation As IMethodInvocation, _
   ByVal log As ILog _
)
[C#]
protected virtual bool IsInterceptorEnabled(
   IMethodInvocation invocation,
   ILog log
);

Parameters

invocation
The invocation.
log
The log to write messages to

Return Value

true if [is interceptor enabled] [the specified invocation]; otherwise, false.

Remarks

The default behavior is to check whether the given ILog instance is enabled by calling IsLogEnabled, whose default behavior is to check if the TRACE level of logging is enabled. Subclasses

See Also

AbstractLoggingAdvice Class | Spring.Aspects.Logging Namespace