在什么情况下 ProcessDiagnosticInfo 会与多个 AppDiagnosticInfo 相关联?

Under what circumstances would a ProcessDiagnosticInfo be associated with multiple AppDiagnosticInfo's?

我正在研究 Windows.System.Diagnostics 并找到了 ProcessDiagnosticInfo.GetAppDiagnosticInfos() 方法。我原以为对于给定的进程,只会关联一个应用程序,而不是多个应用程序,那么为什么要 returning 一个列表?什么情况下会导致 return 多于一个值?

看来我问了不久就找到了答案

For any process associated with a UWP app, the IsPackaged property is true. So, for each of these, you can get from the ProcessDiagnosticInfo to the AppDiagnosticInfo. It might seem strange that we can get AppDiagnosticInfos (plural) from a process – but this is to allow for the possibility that a single process is associated with more than one app. That’s an extremely uncommon scenario, but it is possible in the case of VoIP apps where two or more apps in the same package can share a component running in a separate process at run time. In almost all cases, though, there will only be one AppDiagnosticInfo per process.

https://blogs.windows.com/buildingapps/2017/06/28/uwp-app-diagnostics/#IXiAlM28HfPWx0hT.97