Locked How to use web API from WPF app

  • Tuesday, March 18, 2008 8:24 PM
     
     

    I've just finished watching the recorded session from MIX and the web API looks very good. I'm just wondering what is the best practice for using this API in a smart client application, specifically one written with WPF. There was a mention early in the session about using the API to create a multiplayer game, where the game moves are sent as hidden messages and the users can also chat to each other, but this was not expanded upon. This is basically what I want to do with a WPF application. One instance of the application will be the "server", that other instances connect with using the Messenger network to handle signing on and message delivery. This would be a great way of creating a client-server like environment without the end user having to worry about setting up machines.

    Is this something that is possible using the Web API or is there a pure .NET control that can be used. Is it allowed in the terms of use to do what I am asking. Finally is there any sample available that would demonstrate how to embed and use the Web API in a WPF application? I presume something like a browser control would be necessary. Thanks,

All Replies

  • Monday, March 24, 2008 10:06 PM
     
     Answered

    Hi,

     

    Thank you for your interest in the Messenger Library API.  Currently, the API is based on JavaScript and therefore, it will not be possible to use it in a WPF application.  However, we are planning on releasing a wrapper that will make it possible to use the API in a Silverlight (WPF/E) application in the future.  As for the scenario you mentioned, if it is built as a non-browser based application, it is against the TOU at this point.  Hope this helps.

     

    Thanks,

    Jeff

  • Tuesday, March 25, 2008 11:14 PM
     
     

    [please ignore]

    Testing.