C# Class LinFu.AOP.Cecil.NewInstanceInterceptionAdapter

Represents an adapter class that maps INewInstanceFilter instances to functors.
Inheritance: INewInstanceFilter
Show file Open project: philiplaureano/LinFu

Public Methods

Method Description
NewInstanceInterceptionAdapter ( Func filter ) : System

Initializes a new instance of the NewInstanceInterceptionAdapter class.

ShouldWeave ( MethodReference currentConstructor, TypeReference concreteType, MethodReference hostMethod ) : bool

Determines whether or not a particular constructor call should be intercepted by the postweaver.

Method Details

NewInstanceInterceptionAdapter() public method

Initializes a new instance of the NewInstanceInterceptionAdapter class.
public NewInstanceInterceptionAdapter ( Func filter ) : System
filter Func The filter that determines which instances will be intercepted.
return System

ShouldWeave() public method

Determines whether or not a particular constructor call should be intercepted by the postweaver.
public ShouldWeave ( MethodReference currentConstructor, TypeReference concreteType, MethodReference hostMethod ) : bool
currentConstructor Mono.Cecil.MethodReference The constructor used to instantiate the current instance.
concreteType Mono.Cecil.TypeReference The concrete type that contains the new instance call.
hostMethod Mono.Cecil.MethodReference The host method that contains the new operator call.
return bool