Пример #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);
 }