Exemple #1
0
 protected override void LoadReturnValueArgument(PointCut pc, AdviceArgument parameter)
 {
     if (_retvar == null)
     {
         pc.Null();
     }
     else
     {
         pc.Load(_retvar).Cast(_retvar.VariableType, _ts.Object);
     }
 }
 protected virtual void LoadInstanceArgument(PointCut pc, AdviceArgument parameter)
 {
     if (_target.IsStatic)
     {
         pc.Null();
     }
     else
     {
         pc.This();
     }
 }
 protected virtual void LoadReturnValueArgument(PointCut pc, AdviceArgument parameter)
 {
     _log.LogWarning(CompilationMessage.From($"Advice {_effect.Type.ToString()} does not support {parameter.Source.ToString()} argument and will always return null", _effect.Method));
     pc.Null();
 }
 protected virtual void LoadAttributesArgument(PointCut pc, AdviceArgument parameter)
 {
     pc.Null();
 }
Exemple #5
0
 protected virtual void LoadReturnValueArgument(PointCut pc, AdviceArgument parameter)
 {
     pc.Null();
 }
Exemple #6
0
 protected virtual void LoadTargetArgument(PointCut pc, AdviceArgument parameter)
 {
     pc.Null();
 }
Exemple #7
0
 protected virtual void LoadReturnValueArgument(PointCut pc, AdviceArgument parameter)
 {
     _weaver.LogWarning($"Advice {_effect.Type.ToString()} does not support {parameter.Source.ToString()} argument and will always return null");
     pc.Null();
 }