示例#1
0
        static void Main(string[] args)
        {
            MyServiceProxy proxy = new MyServiceProxy();

            proxy.SayHello("Syed");
            proxy.TodayProgram("Syed");
        }
示例#2
0
        static void Main(string[] args)
        {
            while (true)
            {
                MyServiceProxy myService = new MyServiceProxy();

                Console.WriteLine("\r\nEnter a name");
                string data = myService.GetLargeData(Console.ReadLine());

                Console.WriteLine(data);
            }
        }
示例#3
0
        private void btn_CurrentTime_Click(object sender, EventArgs e)
        {
            DateTime dtNow = MyServiceProxy.GetCurrentTime();

            MessageBox.Show("当前时间:" + dtNow.ToString());
        }