Example #1
0
        protected AroundWeaverBase(MethodDefinition method, AroundAdvice advice, int priority) : base(method)
        {
            adviceName = advice.FullName;
            _priority  = priority;

            adviceMethod = Module.Import(advice.AdviceMethod);
            aspectType   = Module.Import(advice.AdviceMethod.ReflectedType);
            base.method  = method;
        }
Example #2
0
 public AroundMethodWeaver(MethodDefinition targetMethod, AroundAdvice advice, int priority) : base(targetMethod, advice, priority)
 {
 }
Example #3
0
 public AroundInstructionWeaver(IInstructionDescription description, MethodDefinition method, AroundAdvice advice, int priority)
     : base(method, advice, priority)
 {
     instruction      = description.Instruction;
     originalOperand  = description.Instruction.Operand;
     this.description = description;
 }
Example #4
0
 public AroundPropertyGetWeaver(PropertyDefinition targetProperty, AroundAdvice advice, int priority) : base(targetProperty.GetMethod, advice, priority)
 {
 }