How to call a service when a SilverLight OOB app is closing an
问题 I need to call a WCF service to update when my SilverLight app exits. it is an out-of-browser app and I'm using SL4. Since the WCF in SL works only async it is not possible to do on Application.Exit I tried also MainWindow.Closing which is available for OOB but this didn't work either. Tried to make the Closing function wait for the WCF Completed callback using thread locking but it just hang. Any ideas? Shahar 回答1: Save the data and submit on next launch Calling a service on exit is a tricky