I had to abandon this problem, and I changed a few bits of code inside Ninject.Extensions.Interception to allow async / await .
I just started testing the code, and it still seems that the wait before Proceed is called works. I am not 100% sure that everything works as expected, because I need more time to play with this, so feel free to check the implementation and come back to me if you find errors or suggestions.
https://github.com/khorvat/ninject.extensions.interception
IMPORTANT - this solution only works with LinFu DynamicProxy, since LinFu generates proxy classes that can be used for asynchronous waiting.
Note: again, this solution is a “hack”, and not a complete asynchronous implementation of interception.
Hello
source share