什么是 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.