C# Class LinFu.AOP.Cecil.MethodCallFilterAdapter

Represents a type that converts functors into method call filter instances.
Inheritance: IMethodCallFilter
ファイルを表示 Open project: philiplaureano/LinFu

Public Methods

Method Description
MethodCallFilterAdapter ( bool>.Func hostMethodFilter, bool>.Func methodCallFilter ) : System

Initializes a new instance of the MethodCallFilterAdapter class.

ShouldWeave ( TypeReference targetType, MethodReference hostMethod, MethodReference currentMethodCall ) : bool

Determines whether or not a particular method call should be intercepted.

Method Details

MethodCallFilterAdapter() public method

Initializes a new instance of the MethodCallFilterAdapter class.
public MethodCallFilterAdapter ( bool>.Func hostMethodFilter, bool>.Func methodCallFilter ) : System
hostMethodFilter bool>.Func The method filter that will determine the host methods that will be modified for interception.
methodCallFilter bool>.Func The method filter that will determine which method calls will be intercepted.
return System

ShouldWeave() public method

Determines whether or not a particular method call should be intercepted.
public ShouldWeave ( TypeReference targetType, MethodReference hostMethod, MethodReference currentMethodCall ) : bool
targetType Mono.Cecil.TypeReference The host type that contains the method call.
hostMethod Mono.Cecil.MethodReference The method that contains the current method call.
currentMethodCall Mono.Cecil.MethodReference The method call to be intercepted.
return bool