public static T CreateProxyInstance(T _realServiceInstance) { AspectExplorer <T> instance = new AspectExplorer <T>(); instance.MethodContext.ProxyServiceInstance = (T)instance.GetTransparentProxy(); instance.MethodContext.RealServiceInstance = _realServiceInstance; return((T)instance.MethodContext.ProxyServiceInstance); }
public static TI CreateProxyInstance <TI>(this TI @this) where TI : MarshalByRefObject, new() { return(AspectExplorer <TI> .CreateProxyInstance(@this)); }