暂停管理器失败 - 使用自定义类 [英] Suspension Manager Failed - with Custom Class

查看:69
本文介绍了暂停管理器失败 - 使用自定义类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

b

我想保存应用的状态。我在页面 - addnote.xaml,我也输入了标题名称和描述,现在我通过生命周期事件暂停和关闭应用程序,我收到暂停管理器失败错误。

I wanted to save the state of the app. I am at the page - addnote.xaml and i have entered title name and description also and now I do suspend and shutdown of the app through the lifecycle events , I am getting suspension manager failed error.

以下是我的代码 -

Following is my code -

APP.XAML.CS 

APP.XAML.CS 

DATAMODEL / DATASOURCE.CS

DATAMODEL/DATASOURCE.CS

ADDNOTE.XAML.CS

ADDNOTE.XAML.CS

有人可以在这里提供帮助,自上周以来我无法继续

Can someone provide a help here, I am unable to proceed since last week

推荐答案

您好Amolpol,

Hi Amolpol,

错误信息是什么关于暂停经理?你能把它们贴在这里吗?您的代码也缺少MyNotes.Common.SuspensionManager类的定义。我无法使用您的代码来重现此问题。你可以在这里发布一个简单的repro项目来显示你遇到的场景
吗?

What’s the error message about suspension manager? Can you post them here? Your code is also missing the definition of MyNotes.Common.SuspensionManager class. I cannot use your code to repro this problem. Can you post a simple repro project here to show the scenario you are encountering?

当我看到你的代码时,第一个见解就是json转换有问题。然后我在MSDN代码库中下载了关于json的代码示例。我发现你的代码类似于
这个。请看一下,也许你可以自己解决这个问题。

When I have seen your code, the first insight was is there something wrong with the json conversion. Then I downloaded the code sample about json in MSDN code gallery. I found your code is similar with this one. Please have a look at it, maybe you can fix this problem by yourself.

如果你在这个问题上仍然有问题,请使用你的OneDrive发布一个repro项目并在这里分享一下。

If you still have some problem on this issue, please post a repro project using your OneDrive and share a like here.

问候,


这篇关于暂停管理器失败 - 使用自定义类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆