示例#1
0
文件: Program.cs 项目: pepipe/ISEL
        static void Main(string[] args)
        {
            Receiver rec = new Receiver(); // cria um objecto para receber callbacks
            DuplexServiceClient svc = new DuplexServiceClient(new InstanceContext(rec));
            Console.WriteLine(svc.init());

            for (; ; )
            {
                Console.Write("msg to send?");
                string msg = Console.ReadLine();
                if (string.Compare(msg, "exit") == 0) break;
                svc.SendMsg(msg);
            }
            svc.exit();
        }