开发者

Silverlight OOB updates when using MEF / PRISM

开发者 https://www.devze.com 2023-03-07 01:15 出处:网络
I am working on a prototype for Silverlight OOB application. To modularize the application either PRISM or MEF or both will be used. When a new version of the application is a开发者_如何学运维vailable

I am working on a prototype for Silverlight OOB application. To modularize the application either PRISM or MEF or both will be used. When a new version of the application is a开发者_如何学运维vailable, CheckAndDownloadUpdateAsync can assist in downloading the latest version in OOB scenario.

How does updates work if only a new version of an application module is available? Is there a known functionality and/or strategy to be used to download new modules?


You can roll your own update detection, by having a small file on your server next to the XAP for your app, that contains the latest version. For example:

http://localhost/myawesomeapp.xap
http://localhost/myawesomeapp.xap.ver

When you want to check for updates without downloading them, you can always hit the .ver file, check the version listed in it and if newer then the current running app, show the Update button to the user.

Note that this approach also would allow you to create more advanced scenarios, like prompting the user to upgrade to a different version of the app (Pro for example) or that they need to upgrade their Silverlight to get the latest.

And if you have multiple apps, you can list all of them in that file and do cross-promotion between your apps.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号