开发者

Only one background task listed although I have a PeriodicTask and a ResourceIntensiveTask

开发者 https://www.devze.com 2023-04-04 03:55 出处:网络
In my app I am creating both a PeriodicTask and a ResourceIntensiveTask, both of which have different descriptions.

In my app I am creating both a PeriodicTask and a ResourceIntensiveTask, both of which have different descriptions.

Under settings, applications, background tasks I only see the description of the PeriodicTask. Is this normal, or does it mean I've 开发者_StackOverflowmessed something up?

Thanks, Damian


Each app can only have one background task, but you can check which type of task would like to be run by the system by checking the ScheduleTask object from the OnInvoke method. See http://msdn.microsoft.com/en-us/library/hh202941(v=VS.92).aspx.

Edit: The description is only mandatory for the periodic task which get's show as the agent description. For the resource intensive task you'll need to provide a description.


ResourceIntensiveTask will not show up in the settings only PeriodicTask. Under advanced will your app listed. This is my experience.

0

精彩评论

暂无评论...
验证码 换一张
取 消