Example #1
0
        static void Main(string[] args)
        {
            var ms = new MemoryClient("q666");

            Console.WriteLine(((A)ms.Read("q")).a);


            var mss = new MemoryServices("zzzz");

            mss.Write("z", "我是测试");

            Console.ReadLine();
        }
Example #2
0
        static void Main(string[] args)
        {
            var ms = new MemoryServices("q666");

            ms.Write("q", new A {
                a = 6666
            });


            var ml = new MeoryListen("zzzz");

            ml.Register("z", () =>
            {
                var msc = new MemoryClient("zzzz");
                Console.WriteLine(msc.Read("z"));
            });
            Console.Read();
        }