Wait for a WCF Service to complete in Silverlight application

Last Reply on Dec 17, 2013 12:02 AM By Mudassar

Posted on Dec 15, 2013 11:31 PM


Hi freinds

          I am struggling with my wcf service in silverlight4 application.How can I wait for an async WCF service to complete?.Please give me a solution .I am waiting for your reply.My code is given below

 ServiceReference1.DragAndDropClient client = new SilApp.ServiceReference1.DragAndDropClient();
client.GetSublayersCompleted += new EventHandler<SilApp.ServiceReference1.GetSublayersCompletedEventArgs>GetSublayer);
client.GetSublayersAsync(1);


Thanks
Sujina

Posted on Dec 17, 2013 12:02 AM

Refer

http://stackoverflow.com/questions/12845059/how-best-to-wait-for-a-silverlight-4-asynchronous-call