예제 #1
0
        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);
        }
예제 #2
0
 public static TI CreateProxyInstance <TI>(this TI @this) where TI : MarshalByRefObject, new()
 {
     return(AspectExplorer <TI> .CreateProxyInstance(@this));
 }