public static void Show() { User user = new User() { Name = "Richard", Password = "******" }; UserProcessor processor = new UserProcessor(); processor.RegUser(user); Console.WriteLine("*********************"); UserProcessor userProcessor = TransparentProxy.Create <UserProcessor>(); userProcessor.RegUser(user); }
public void Show() { User user = new User() { Name = "S021453", Password = "******" }; UserProcessor processor = new UserProcessor(); processor.RegUser(user); Console.WriteLine("********************"); IUserProcessor userProcessor = TransparentProxy.Create <UserProcessor>(); userProcessor.RegUser(user); int result = userProcessor.GetUserId(); }