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);
        }
예제 #2
0
        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();
        }