Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

How to: Call the Methods of a Remote Object Asynchronously 

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.

    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());

See Also

Community Additions

© 2015 Microsoft