For the Advice.Before and Around aspects, I would like to be able to tell the aspected method to skip its execution. This will allow me to use pre and post invariants.
Please describe the solution you'd like
I would imagine that this would be doable by using the context. By exposing a mutable shortCircuit flag defaulted to false but settable to true, the call within the proxyFunc can be skipped.
Hi @DsMaccy,
Could you provide a detailed example?
If I understood it correctly, then you could also apply the aspects to a (empty) mock of the function.
Please describe what you would like to see
For the
Advice.Before
andAround
aspects, I would like to be able to tell the aspected method to skip its execution. This will allow me to use pre and post invariants.Please describe the solution you'd like
I would imagine that this would be doable by using the context. By exposing a mutable
shortCircuit
flag defaulted to false but settable to true, the call within the proxyFunc can be skipped.