C# Класс Patterns.Logging.LoggingInterceptor

Provides an IInterceptor implementation that uses ILog to log Trace, Debug, Info, and Error events throughout the execution of intercepted invocations.
Наследование: Patterns.Interception.DelegateInterceptor
Показать файл Открыть проект

Открытые методы

Метод Описание
LoggingInterceptor ( ILoggingConfig config, ILog>.Func logFactory, ILogValueFormatter formatter ) : System

Initializes a new instance of the LoggingInterceptor class.

LoggingInterceptor ( ILoggingConfig config, ILog>.Func logFactory, ILogValueFormatter formatter, bool>.Func condition ) : System

Initializes a new instance of the LoggingInterceptor class.

Защищенные методы

Метод Описание
LogAfter ( IInvocation invocation ) : void
LogBefore ( IInvocation invocation ) : void
LogError ( IInvocation invocation, Exception error ) : ExceptionState
LogFinally ( IInvocation invocation ) : void

Приватные методы

Метод Описание
Initialize ( bool>.Func condition ) : void

Описание методов

LogAfter() защищенный Метод

protected LogAfter ( IInvocation invocation ) : void
invocation IInvocation
Результат void

LogBefore() защищенный Метод

protected LogBefore ( IInvocation invocation ) : void
invocation IInvocation
Результат void

LogError() защищенный Метод

protected LogError ( IInvocation invocation, Exception error ) : ExceptionState
invocation IInvocation
error System.Exception
Результат Patterns.ExceptionHandling.ExceptionState

LogFinally() защищенный Метод

protected LogFinally ( IInvocation invocation ) : void
invocation IInvocation
Результат void

LoggingInterceptor() публичный Метод

Initializes a new instance of the LoggingInterceptor class.
public LoggingInterceptor ( ILoggingConfig config, ILog>.Func logFactory, ILogValueFormatter formatter ) : System
config ILoggingConfig The config.
logFactory ILog>.Func The log factory.
formatter ILogValueFormatter The formatter.
Результат System

LoggingInterceptor() публичный Метод

Initializes a new instance of the LoggingInterceptor class.
public LoggingInterceptor ( ILoggingConfig config, ILog>.Func logFactory, ILogValueFormatter formatter, bool>.Func condition ) : System
config ILoggingConfig The config.
logFactory ILog>.Func The log factory.
formatter ILogValueFormatter The formatter.
condition bool>.Func The intercept condition.
Результат System