If args.Proceed() is from an anonymous function CIL instruction are not getting transformed. after some investigation i realized that lambda functions compiles to a private nested class, so args.Proceed() ended up not being in the Invoke() function body anymore.
The transformation only check if args.Proceed() exists inside of Invoke(). Therefore that's the cause of the problem.
If args.Proceed() is from an anonymous function CIL instruction are not getting transformed. after some investigation i realized that lambda functions compiles to a private nested class, so args.Proceed() ended up not being in the Invoke() function body anymore.
The transformation only check if args.Proceed() exists inside of Invoke(). Therefore that's the cause of the problem.