本文介绍了RPi托管的ASP.Net Core网页的后端服务。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在RPi2 / 3上构建一个简单的Web可访问SCADA系统

I am trying to build a simple web accessible SCADA system on a RPi2/3

到目前为止,我能够在RPi上创建一个自托管的Web服务器。说明@

So far I was able to create a self hosted web server on the RPi following the instructions @

https://carlos.mendible.com/2017/03/21/step-by-step-running-aspnet-core-on-raspberry-pi/

https://carlos.mendible.com/2017/03/21/step-by-step-running-aspnet-core-on-raspberry-pi/

创建UWP后台服务以控制GPIO的时间非常紧张

And it' pretty strait forward to create a UWP background service to control the GPIO's

我遇到的问题是让2进行通信。由于Web服务器是.NetCoreApp,我无法添加对UWP的引用,因为它们不兼容,因此我无法访问ApplicationModel.AppService.AppServiceConnection。

The problem I'm having is getting the 2 to communicate. Since the web server is a .NetCoreApp I cannot add a reference to UWP because they are not compatible so I can't get access to ApplicationModel.AppService.AppServiceConnection.

使用WebSockets的缺点是有没有其他方式获得进程间通信?

Short of using WebSockets is there any other way of getting inter process communications?

谢谢。

推荐答案

我遇到的问题是让2进行沟通。由于Web服务器是.NetCoreApp,我无法添加对UWP的引用,因为它们不兼容,因此我无法访问ApplicationModel.AppService.AppServiceConnection。

工作原理按设计

使用WebSockets是否还有其他方式来进行进程间通信? 

UWP应用程序在"安全的沙箱"中运行。环境,并不打算与应用程序平台之外的其他服务/应用程序进行通信

UWP apps are running in a "secured sandboxed" environment and are not intended to communicate to other services/apps outside the app platform

br

Andre

br
Andre


这篇关于RPi托管的ASP.Net Core网页的后端服务。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 07:56