In need of a virtual method instance proxy

Jun 27, 2012 at 6:48 PM

Intercepting the database connection is a head ache any day, the unity implementation of transparent proxy does not work here at all.

We want a type safe instance interception mechanism supporting the interception of calls even on the sealed classes; more like a VirtualMethodInstanceProxy similar to the support Linfu provides for the same with the Mono.Cecil

Bringing this support to unity will make it powerful enough to cater any interception requirements.

Jun 28, 2012 at 10:36 AM
Edited Jun 28, 2012 at 10:44 AM

Here is the link for the idea I have submitted in "enterprises library vnext" suggestions in user voice portal. Please feel free to vote for the same, if you feel it makes sense to bring in the interception of instances any datatypes with a type safe instance proxy.

Please note that the TransparentProxy, the unity implementation of the RealProxy, fails to intercept the SqlConnection or SqlCommand. A type safe instance proxy will resolve the problems of remoting and serialization issues on either side.