Exemple #1
0
        static void Main(string[] args)
        {
            UserInfoClient proxy = new UserInfoClient();

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