C# Class LinFu.AOP.Cecil.Extensions.InvocationInfoExtensions

Adds helper methods classes that implement the IInvocationInfo interface.
Mostrar archivo Open project: philiplaureano/LinFu

Public Methods

Method Description
Emit ( this emitter, MethodInfo method, Mono.Cecil.MethodDefinition targetMethod, Mono.Cecil.Cil.VariableDefinition invocationInfo ) : void

Emits the IL instructions that will store information about the method currently being executed and stores the results into the variable.

Proceed ( this info ) : object

Invokes the currently executing method by using the IInvocationInfo.Target as the target instance, the IInvocationInfo.TargetMethod as the method, and uses the IInvocationInfo.Arguments for the method arguments.

Proceed ( this info, object target ) : object

Invokes the currently executing method by using the target as the target instance, the IInvocationInfo.TargetMethod as the method, and uses the IInvocationInfo.Arguments for the method arguments.

Method Details

Emit() public static method

Emits the IL instructions that will store information about the method currently being executed and stores the results into the variable.
public static Emit ( this emitter, MethodInfo method, Mono.Cecil.MethodDefinition targetMethod, Mono.Cecil.Cil.VariableDefinition invocationInfo ) : void
emitter this The instance.
method System.Reflection.MethodInfo The method whose implementation will be intercepted.
targetMethod Mono.Cecil.MethodDefinition The actual method that will contain the resulting instructions.
invocationInfo Mono.Cecil.Cil.VariableDefinition The local variable that will store the current instance.
return void

Proceed() public static method

Invokes the currently executing method by using the IInvocationInfo.Target as the target instance, the IInvocationInfo.TargetMethod as the method, and uses the IInvocationInfo.Arguments for the method arguments.
public static Proceed ( this info ) : object
info this The instance that contains information about the method call itself.
return object

Proceed() public static method

Invokes the currently executing method by using the target as the target instance, the IInvocationInfo.TargetMethod as the method, and uses the IInvocationInfo.Arguments for the method arguments.
public static Proceed ( this info, object target ) : object
info this The instance that contains information about the method call itself.
target object The target instance that will handle the method call.
return object