防止孤立存储删除 Silverlight 4 OOB
我为食品链开发了一款 OOB SL4 应用程序,它将门店账单本地存储在独立存储中,并在互联网连接可用时上传这些账单。一切正常。
但我看到如果我打开silverlight配置对话框->隔离存储,可以删除应用程序的隔离存储。因此,如果有 1000 个账单等待上传,则会被删除。
有什么方法可以防止同样的情况吗?我不这么认为,我知道我的文档又多了一个地方,但我正在寻找安全存储数据的替代方法?
我尝试了 Comtoolkit,但似乎行为不一致,并且不是生产质量代码
I have developed one OOB SL4 applicaton for a food chain, and it stores outlet bills locally in isolated storage, and these bills gets uploaded when Internet connection would be available. All is working fine.
But I have seen that if I open silverlight configuration dialogue->isolated storage, can delete the isolated storage of the application. So If there are 1000 bills are pending to upload gets deleted.
Is there any way to prevent the same?, I don;t think so , I know My documents is one more place, but I am looking for alternate way to store data safely?
I tried the Comtoolkit but seems that behaviour is not consistent and not production quality code
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如 @NestorArturo 所说,似乎没有配置可以阻止这种情况。
但是,还有一种替代方案,适用于浏览器外应用程序是使用文件系统。
第三种选择是编写您自己的 COM 组件;通过这种技术,您可以获得对系统的完全访问权限。
As @NestorArturo states it seems there is no configuration to prevent this.
However, an alternative, for an out of browser application is to use the file system.
A third alternative is to write your own COM component; via this technique, you can gain full access to the system.