传递给处理后台任务完成的函数的对象上没有更多状态属性 [英] No more status property on the object passed to the function that handles the completion of a background task

查看:82
本文介绍了传递给处理后台任务完成的函数的对象上没有更多状态属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello guys。


在上一版本中,我们可以通过检查传递给处理函数的对象的status属性来检查后台任务的完成状态由BackgroundTaskRegistration对象触发的已完成事件。


现在看来我们必须通过本地设置对象传递此信息。既然如此,我们还需要在后台任务的工作人员中设置成功属性吗?


谢谢。




Luis Abreu

解决方案

是的,将succeeded属性设置为true!


Hello guys.

In the previous release, we could check for the completion status of a background task by checking the status property of the object passed to the function that handles the completed event fired by the BackgroundTaskRegistration object.

It seems like now we must pass this info through the local settings object. That being the case, do we still need to set the succeded property in the background task's worker?

thanks.


Luis Abreu

解决方案

Yes, set the succeeded property to true!


这篇关于传递给处理后台任务完成的函数的对象上没有更多状态属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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