コード例 #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));
 }