简体   繁体   English

什么是AgHost.BackgroundTask作为Windows Phone Silverlight 8.1中的后台任务?

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

When I create a new Windows Phone SIlverlight 8.1 app, there is a background task in the manifest: 当我创建一个新的Windows Phone SIlverlight 8.1应用程序时,清单中有一个后台任务:

 <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 我能找到的唯一参考不是很有帮助http://msdn.microsoft.com/en-us/library/windowsphone/develop/dn642084.aspx

AgHost.exe is the foreground process. AgHost.exe是前台进程。 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. 除非您正在编写VoIP应用程序,否则应该完全安全地删除。 However, if you're utilizing one or more background agents for GPS tracking, push notifications, or the likes, this might still be necessary. 但是,如果您正在使用一个或多个后台代理进行GPS跟踪,推送通知等,则可能仍然需要这样做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM