示例#1
0
 public void EntLibProxyTest() {
     User user = new User() { Name = "wudan", PassWord = "******" };
     EntLibProxy.UserProcessor.ProxyInstance.RegUser(user);
 }
示例#2
0
 public void DynamicProxyTest() {
     User user = new User() { Name = "wudan", PassWord = "******" };
     DynamicProxy.UserProcessor userProcessor = DynamicProxy.TransparentProxy.CreateInstance<DynamicProxy.UserProcessor>();
     userProcessor.RegUser(user);
 }
示例#3
0
 public void CastleDynamicProxyTest() {
     User user = new User() { Name = "wudan", PassWord = "******" };
     CastleDynamicProxy.UserProcessor.ProxyInstance.RegUser(user);
 }
示例#4
0
 public void StatisAopTest()
 {
     User user = new User() { Name = "wudan", PassWord = "******" };
     IUserProcessor userProcessor = new StatisProxy.UserProcessorDecorator(new StatisProxy.UserProcessor());
     userProcessor.RegUser(user);
 }