Example #1
0
        public void Method2CallBack(IAsyncResult iar)
        {
            TestMethod test = iar.AsyncState as TestMethod;
            string     str  = test.EndInvoke(iar);

            if (null != _allForm)
            {
                richTextBox1.Invoke(_allForm, string.Format(" 异步执行完成调用回调方法 {0}\r\n ", str));
            }
            //testEvent.Set();
        }
Example #2
0
 public void Wait()
 {
     _testMethod.EndInvoke(_asyncResult);
 }