What is AgHost.BackgroundTask as background task in Windows Phone Silverlight 8.1?

回眸只為那壹抹淺笑 提交于 2019-12-10 16:23:37

问题


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>

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


回答1:


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

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.



来源:https://stackoverflow.com/questions/23185201/what-is-aghost-backgroundtask-as-background-task-in-windows-phone-silverlight-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!