// get a proxy to the Web service
1 2 3 | customerService serviceProxy = new customerService (); //start async call to CustomerUpdate IAsyncResult result = serviceProxy.BeginCustomerUpdate( null , null ); |
// but is absent here
//wait for the asynchronous operation to complete
// Client is blocked until call is done
1 2 | result.AsyncWaitHandle.WaitOne(); serviceProxy.EndCustomerUpdate(result); |
Ref: https://msdn.microsoft.com/en-us/library/ff647790.aspx
0 comments:
Post a Comment