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
Afficher le fichier Open project: jgauffin/Griffin.Container Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
CreateInterceptor ( DecoratorContext context ) : IInterceptor

Create a new interceptor

Method Details

CreateInterceptor() protected méthode

Create a new interceptor
protected CreateInterceptor ( DecoratorContext context ) : IInterceptor
context DecoratorContext The context.
Résultat IInterceptor

ExceptionLoggerDecorator() public méthode

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

ExceptionLoggerDecorator() public méthode

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.
Résultat System

PreScan() public méthode

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