示例#1
0
文件: Program.cs 项目: ITanyx/GitTest
        static void Main(string[] args)
        {
            UserInfoClient proxy = new UserInfoClient();

            proxy.GetInfoCompleted += new EventHandler <GetInfoCompletedEventArgs>(proxy_GetInfoCompleted);
            proxy.GetInfoAsync(null);
            Console.WriteLine("此字符串在调用方法前输出,说明异步调用成功!");
            Console.Read();
        }