How to: Call the Methods of a Remote Object Asynchronously
.NET Framework 3.0
This topic is specific to a legacy technology that is retained for backward compatibility with existing applications and is not recommended for new development. Distributed applications should now be developed using the Windows Communication Foundation (WCF).
The process for asynchronous programming is as straightforward as that for a single application domain.
To call a method of a remote object asynchronously
-
Create an instance of an object that can receive a remote call to a method.
[C#]
int count = 0;
while (!RemAr.IsCompleted)
{
Console.Write("\rNot completed: " + (++count).ToString());
Thread.Sleep(1);
}