Need to execute requests in synchronized mode

Answered

Comments

4 comments

  • Avatar
    George Nicolaidis

    ooops, just noticed in the documentation

    http://docs.frozenmountain.com/therest2/index.html#class=therest-getting-started-platform-considerations-50_silverlight-windowsphone

    that synchronous support in WP8 or silverlight and windows 8 is not available!

    0
    Comment actions Permalink
  • Avatar
    Anton Venema

    Hey George,

    In Windows 8, you have to use the "await" keyword with the "SendAsync" overload. All of the public API methods in our libraries have Async overloads specifically for this purpose, following the Microsoft convention. This will execute requests asynchronously, but sequentially (not in parallel):

        await client.SendAsync(...);

        await client.SendAsync(...);

        ...

    Regards,

    Anton

    0
    Comment actions Permalink
  • Avatar
    Anton Venema

    Also, the next release will include Async overloads for the Windows Phone 8 libraries as well. If you have a support subscription, let me know and we'll put together a one-off build for you so you can get started right away.

    0
    Comment actions Permalink
  • Avatar
    Anton Venema

    Hi George,

    One last follow-up. Awaitable "Async" overloads have been added to the Windows Phone libraries as of the version x.4.3.

    Happy new year!

    0
    Comment actions Permalink

Please sign in to leave a comment.