C# Класс Griffin.Container.Interception.Logging.ExceptionLoggerDecorator

Wraps each method call and log any exceptions using IExceptionLogger.
Will per default decorate all services. Do note that the exceptions are rethrown after the logging (without affecting the callstack)
Наследование: CastleDecorator
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ExceptionLoggerDecorator ( IExceptionLogger logger ) : System

Initializes a new instance of the ExceptionLoggerDecorator class.

ExceptionLoggerDecorator ( IExceptionLogger logger, IDecoratorFilter filter ) : System

Initializes a new instance of the ExceptionLoggerDecorator class.

PreScan ( IEnumerable concretes ) : void

Allows the decorator to prescan all registered concretes

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

Метод Описание
CreateInterceptor ( DecoratorContext context ) : IInterceptor

Create a new interceptor

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

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

Create a new interceptor
protected CreateInterceptor ( DecoratorContext context ) : IInterceptor
context DecoratorContext The context.
Результат IInterceptor

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

Initializes a new instance of the ExceptionLoggerDecorator class.
public ExceptionLoggerDecorator ( IExceptionLogger logger ) : System
logger IExceptionLogger Used for the actual logging.
Результат System

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

Initializes a new instance of the ExceptionLoggerDecorator class.
public ExceptionLoggerDecorator ( IExceptionLogger logger, IDecoratorFilter filter ) : System
logger IExceptionLogger Used for the actual logging.
filter IDecoratorFilter The filter.
Результат System

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

Allows the decorator to prescan all registered concretes
public PreScan ( IEnumerable concretes ) : void
concretes IEnumerable All registered concretes
Результат void