什么是 AgHost.BackgroundTask 作为 Windows Phone Silverlight 8.1 中的后台任务? [英] What is AgHost.BackgroundTask as background task in Windows Phone Silverlight 8.1?

查看:27
本文介绍了什么是 AgHost.BackgroundTask 作为 Windows Phone Silverlight 8.1 中的后台任务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建一个新的 Windows Phone SIlverlight 8.1 应用程序时,清单中有一个后台任务:

When I create a new Windows Phone SIlverlight 8.1 app, there is a background task in the manifest:

 <Extension Category="windows.backgroundTasks" EntryPoint="AgHost.BackgroundTask">
      <BackgroundTasks>
         <Task Type="systemEvent" />
     </BackgroundTasks>
</Extension>

是什么?移除是否安全?我能找到的唯一参考不是很有帮助 http://msdn.microsoft.com/en-us/library/windowsphone/develop/dn642084.aspx

What is it? Is it safe to remove? The only reference I could find is not very helpful http://msdn.microsoft.com/en-us/library/windowsphone/develop/dn642084.aspx

推荐答案

AgHost.exe 是前台进程.此入口点允许您在必要时托管后台进程.

AgHost.exe is the foreground process. This entry point is to allow you to host a background process, if necessary.

除非您正在编写 VoIP 应用程序,否则删除它应该是绝对安全的.但是,如果您使用一个或多个后台代理进行 GPS 跟踪、推送通知等,这可能仍然是必要的.

Unless you're writing a VoIP application, this should be perfectly safe to remove. However, if you're utilizing one or more background agents for GPS tracking, push notifications, or the likes, this might still be necessary.

这篇关于什么是 AgHost.BackgroundTask 作为 Windows Phone Silverlight 8.1 中的后台任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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