Share data between main app and periodic task

前端 未结 4 1035
一个人的身影
一个人的身影 2020-12-10 16:01

I post this specific question after the other one I wasn\'t able to solve.

Briefly: even if I create a static class (with static vars and/or properties), main app

4条回答
  •  抹茶落季
    2020-12-10 16:19

    After a long search, I finally found an article stating:

    Since our EvenTiles application and its PeriodicTask are running in separate processes, they are completely separated from each other, meaning that they get their own copies of variables they both want to access, even though these variables are defined in a separate project.

    So it's impossible to share data between main app and periodic task using "simple" static variables/properties; we must read/write a database or the isolated storage or whatever we please.

    I find this crazy, but this is the story.

提交回复
热议问题