I was having an issue with calling a certain static method which called other methods downstream (one of which was LINQ and EntityFramework) where using Pose.Isolate(...) it would fail.
My basic question is: is there a way I can tell it to not traverse through a certain method call recursively (short-circuit it)
I took the source and made a simple/hack way to do this that works, but wondering if there is a way without customizing the source:
I was having an issue with calling a certain static method which called other methods downstream (one of which was LINQ and EntityFramework) where using Pose.Isolate(...) it would fail.
My basic question is: is there a way I can tell it to not traverse through a certain method call recursively (short-circuit it)
I took the source and made a simple/hack way to do this that works, but wondering if there is a way without customizing the source:
In this example, I am using a regex pattern to ignore any method in the System namespace.
To make this work, I just changed the EmitILForMethod implementation and added the check at the top:
The PoseContext class just has some methods for setting up the ignore patterns and checking them: