从桌面应用程序等待来自Metro应用程序的事件,反之亦然 [英] Waiting from a desktop app for events originating from a metro app and vice versa

查看:80
本文介绍了从桌面应用程序等待来自Metro应用程序的事件,反之亦然的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个Metro应用,由于多个操作异步进行,我们希望测试该应用中可能出现的某些问题. 所以基本上我们的计划是要有一个测试应用程序(最好是桌面应用程序),它可以等待Metro应用程序内生成的某些事件,我们也希望它是双向的,因为我们的桌面测试应用程序还可以生成Metro上的某些事件应用程序将等待(我们将在Metro应用程序代码中注入该部分).通过这种方式,我们希望生成更多方案. 问题显然是在通常情况下,Metro应用程序内生成的事件对应用程序容器外部的其他应用程序不可见,因此有一种方法可以通过清单文件中的一些编辑来启用事件. PS:我们只需要这个框架来进行测试,因此,由于IPC框架不会附带该代码,因此我们目前不担心被标记.只要我们能够等待进程之间的事件,就可以了. (尽管我们的目标是对应用程序代码的原始工作造成最小的干扰)

We have a metro app and we want to test certain issues that may come up in the app due to multiple operations going on in async. So basically our plan is to have a test app (preferably a desktop app) which can wait on certain events generated from within the metro app.We also want this to be bidirectional that is our desktop test app also generates certain events on which the metro app will wait (We will inject that part in the metro app code).This way we hope to generate more scenarios. The problem is apparently in normal scenario events generated within metro app are not visible to other apps outside the app container.So is there a way to enable the eventing by some edits in the manifest file. PS: We need this framework only for testing so currently we are not bothered about being flagged as the code won't be shipped with the IPC framework. As long as we are able to wait on events across processes it is fine. (Though we aim something that causes minimum interference with the original working of the app code)

此外,如果我们不使用事件处理,可以使用RPC或任何其他使我们能够等待的通讯方式.

Also if we don't use eventing can we use RPC or any other form of communication that enables us to wait.

推荐答案

此操作已明确禁用.同步的唯一方法是通过云(后端服务)或文件系统.

This is explicitly disabled. The only way to sync would be through the cloud (a back end service) or through the file system.

这篇关于从桌面应用程序等待来自Metro应用程序的事件,反之亦然的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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