none
Asynchronous WCF Service Methods Call in Silverlight RRS feed

  • Question

  • we have two Asynchronous  call in silver light , second call response come before first call response .

     

    1.  First  call method :  GetOPDetailsView_TotalAsync(Parameters)

    2.  Second    : GetOPDetailsViewByRG_PLAsync(Paramter)

     

     

     

    But we need response first call should come first coz we use this response in second call.

    Tuesday, March 27, 2012 11:11 AM

Answers

  • Hello Girijesh10,

    You've posted your question to a forum for Microsoft Project, a project management scheduling software.  Please re-post your question to the forum for Silverlight development.

    http://forums.silverlight.net/

    Julie

    Tuesday, March 27, 2012 2:52 PM
    Moderator

All replies

  • Hello Girijesh10,

    You've posted your question to a forum for Microsoft Project, a project management scheduling software.  Please re-post your question to the forum for Silverlight development.

    http://forums.silverlight.net/

    Julie

    Tuesday, March 27, 2012 2:52 PM
    Moderator
  • Everything in Silverlight is asynchronous so you need to adapt to this environment.

    For this case, the solution is to not make the two calls sequentially, but instead to:

    1. call the first method

    2. connect the callback event to a method

    3. when the callback is fired, then call the second function

    This will guarantee the first call is completed before the second call is fired.

    John Milan

    www.teamdirection.com

    Tuesday, March 27, 2012 10:19 PM