Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have WCF service and I am utilizing that service in Windows phone 8 like below.

here i need to wait the Main thread upto when WCF service task is completed .

XML
{
Objclinet.UserAuthenticationCompleted +=  new EventHandler<MobileServiceReference.UserAuthenticationCompletedEventArgs>(EventUserAuthenticationCompleted);
             Objclinet.UserAuthenticationAsync(ID,PWD);


}

  private  void EventUserAuthenticationCompleted(object sender, MobileServiceReference.UserAuthenticationCompletedEventArgs e)
        {
            var empobj = JsonConvert.DeserializeObject<Employeinfo_2>(e.Result);
           
           // exitEvent.Set();   

        }
Posted

1 solution

You should implement WaitHandle concept.
 
Share this answer
 
Comments
venuchary 20-Aug-14 3:42am    
yes , can give me any example ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900