Exemple #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;
        }
Exemple #2
0
 public AroundMethodWeaver(MethodDefinition targetMethod, AroundAdvice advice, int priority) : base(targetMethod, advice, priority)
 {
 }
Exemple #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;
 }
 public AroundPropertyGetWeaver(PropertyDefinition targetProperty, AroundAdvice advice, int priority) : base(targetProperty.GetMethod, advice, priority)
 {
 }