gpt4 book ai didi

c# - Windows Phone IsolatedStorageSettings 和 Mutex

转载 作者:太空狗 更新时间:2023-10-30 00:53:54 25 4
gpt4 key购买 nike

我正在为 Windows Phone 开发应用程序。此应用程序使用后台代理(计划任务)。

主应用程序在 IsolatedStorageSettings.ApplicationSettings 的帮助下存储一些设置.后台代理有时只能从设置中读取值。

问题是我应该使用 MutexIsolatedStorageSettings 上同步操作在主应用程序和后台代理之间?或者这在我的场景中不需要?

最佳答案

是的。 More...

For Periodic and Resource-intensive Agents: Use LINQ 2 SQL or a file in isolated storage that is guarded with a Mutex. For one-direction communication where the foreground application writes and the agent only reads, we recommend using an isolated storage file with a Mutex. We recommend that you do not use IsolatedStorageSettings to communicate between processes because it is possible for the data to become corrupt.

简单的方法:

Easy way to save game in WP7 Silverlight?

关于c# - Windows Phone IsolatedStorageSettings 和 Mutex,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14790701/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com