Windows Phone IsolatedStorageSettings & Mutex

I am developing an application for Windows Phone. This application uses a background agent (scheduled task).

The main application stores some settings using IsolatedStorageSettings.ApplicationSettings . A background agent can sometimes only read values ​​from settings.

The question is, should I use Mutex to synchronize operations on IsolatedStorageSettings between the main application and the background agent? Or is it not needed in my script?

+4
source share
1 answer

Yes. More details ...

For periodic and resource-intensive agents: use LINQ 2 SQL or a file in isolated storage that is protected with Mutex. For a unidirectional communication, in which the foreground application is written, and the agent we are only reading, we recommend using an isolated file with a Mutex file. We recommend that you do not use IsolatedStorageSettings to interact between processes, as data may become corrupt.

A simple way to do this:

Easy way to save game in WP7 Silverlight?

+6
source

All Articles