异步编程的过程与单个应用程序域中的编程过程一样简单。
异步调用远程对象的方法
- 创建可接收远程方法调用的对象的实例。 - Dim obj as ServiceClass = new ServiceClass()
ServiceClass obj = new ServiceClass();
AsyncCallback RemoteCallback = new AsyncCallback(this.OurRemoteAsyncCallback);
int count = 0;
while (!RemAr.IsCompleted)
{
    Console.Write("\rNot completed: " + (++count).ToString());
    Thread.Sleep(1);
}
请参见
概念
其他资源
.gif)
版权所有 (C) 2007 Microsoft Corporation。保留所有权利。