缺少 MemoryMappedFiles 的 C# UWP Windows 10 进程间通信 [英] C# UWP Windows 10 Inter Process Communication with MemoryMappedFiles missing

查看:108
本文介绍了缺少 MemoryMappedFiles 的 C# UWP Windows 10 进程间通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个新问题,这是在为我的应用程序编写 IPC 时出现的.

I'm facing a new problem, that occured while coding my IPC for my app.

在 UWP 之前,我能够成功地使用指令 using System.IO.MemoryMappedFiles;.现在我不能使用 using System.IO.MemoryMappedFiles; 而我需要它.

Before UWP I was able to use the directive using System.IO.MemoryMappedFiles; sucessfully. Now I can't use using System.IO.MemoryMappedFiles; and I need it.

每个人都面临同样的问题吗?如果是,你是如何解决的?

Is everyone facing the same issue? If yes, how do you solved it?

我的应用不再编译.

我已经尝试重新导入 System.Core.dll 作为参考和 DllImport,但都没有成功.

I already tried to reimport the System.Core.dll as a reference and with DllImport, neither worked.

推荐答案

直接进程间通信在通用应用中不可用.

Direct inter-process communication is not available in Universal apps.

您可以使用应用服务LaunchUriForResultsAsync 以执行跨多个应用的​​任务.

You can use App Services or LaunchUriForResultsAsync to perform tasks that span multiple apps.

这篇关于缺少 MemoryMappedFiles 的 C# UWP Windows 10 进程间通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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