C# Class 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)
Inheritance: CastleDecorator
Mostra file Open project: jgauffin/Griffin.Container Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
CreateInterceptor ( DecoratorContext context ) : IInterceptor

Create a new interceptor

Method Details

CreateInterceptor() protected method

Create a new interceptor
protected CreateInterceptor ( DecoratorContext context ) : IInterceptor
context DecoratorContext The context.
return IInterceptor

ExceptionLoggerDecorator() public method

Initializes a new instance of the ExceptionLoggerDecorator class.
public ExceptionLoggerDecorator ( IExceptionLogger logger ) : System
logger IExceptionLogger Used for the actual logging.
return System

ExceptionLoggerDecorator() public method

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.
return System

PreScan() public method

Allows the decorator to prescan all registered concretes
public PreScan ( IEnumerable concretes ) : void
concretes IEnumerable All registered concretes
return void