Some of you may have read my previous post on Interpose.Core. I’ve made a few modifications since:
- Added caching for type generators, meaning, you won’t have to generate the same types twice
- Added DispatchProxy interception; if you don’t know DispatchProxy, it’s .NET Core’s replacement for RealProxy, the transparent proxy mechanism that exists in .NET “full” framework. It may be used as an alternative to interface interception, as we don’t need to generate a type at runtime
The source code is updated and so is the NuGet package. Do have a look and share your thoughts!