WinRT 中的应用程序间通信 [英] Inter application communication in WinRT

查看:21
本文介绍了WinRT 中的应用程序间通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 8 上有两个 WinRT 应用程序(C#/Xaml,如果重要).第一个应用程序应该接收一些数据并将其发送到第二个应用程序中.最好的方法是什么?可以使用WCF吗?

There are two WinRT applications (C#/Xaml if it matters) on Windows 8. The first app should receive and send some data into the second one. What the best way to do that? Can WCF be used?

第一个应用程序知道第二个应用程序.其实第二个应用是一个认证服务器,它只提供了一种获取token的方法.

The first app knows about the second one. Actually the second app is an authentication server, it provides only one method to get a token.

推荐答案

不可能,这需要环回支持.您只能为测试打开的东西,您不能在用户的机器上依赖它.CheckNetIsolation.exe 实用程序可用于启用它,MSDN 文章 在这里.

Not possible, this requires loopback support. Something you can only turn on for testing, you cannot rely on it on your user's machine. The CheckNetIsolation.exe utility is available to enable it, MSDN article is here.

强调仅用于测试,您不能发布这样的应用.您的身份验证服务器需要在另一台机器上运行.考虑到它在同一台机器上运行时会受到损害的可能性,无论如何都非常重要.

Emphasis on only for testing, you can't ship an app like this. Your authentication server needs to run on another machine. Pretty essential anyway considering the odds it will be compromised when it runs on the same machine.

这篇关于WinRT 中的应用程序间通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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