C# Class Griffin.Container.Interception.DelegateDecoratorFilter

Uses a delegate to determine if the intances can be decorated.
Inheritance: IDecoratorFilter
Exibir arquivo Open project: jgauffin/Griffin.Container

Public Methods

Method Description
CanDecorate ( DecoratorContext context ) : bool

Determins if an instance should be decorated or not.

DelegateDecoratorFilter ( bool>.Func filter ) : System

Initializes a new instance of the DelegateDecoratorFilter class.

Method Details

CanDecorate() public method

Determins if an instance should be decorated or not.
public CanDecorate ( DecoratorContext context ) : bool
context DecoratorContext Context
return bool

DelegateDecoratorFilter() public method

Initializes a new instance of the DelegateDecoratorFilter class.
public DelegateDecoratorFilter ( bool>.Func filter ) : System
filter bool>.Func The filter.
return System