简体   繁体   English

自托管(Owin)基于Windows 10手机上的Asp.Net Web API

[英]Self Hosted (Owin) based Asp.Net Web API on Windows 10 mobile phone

Is it possible to run Self Hosted (Owin) based Asp.Net Web API on Windows 10 mobile phone/tablet? 是否可以在Windows 10手机/平板电脑上运行基于自托管(Owin)的Asp.Net Web API? I would like to use mobile/tablet as a server for Asp.Net Web API which I already developed. 我想使用移动/平板电脑作为我已经开发的Asp.Net Web API的服务器。

Good question. 好问题。 Since Windows 10 Mobile features a "device portal", which comprises a set of REST resources which are located in the network at the device IP, an answer seems to be "yes, is possible". 由于Windows 10移动版具有一个“设备门户”,其中包括一组REST资源,这些资源位于网络中设备IP上,因此答案似乎是“可以,是可能的”。 But I'm afraid this facility is implemented as a (sort-of) modified WCF service. 但我担心这个工具是作为(一种)修改的WCF服务实现的。 It doesn't need a regular HTTP server, which would be overkill for a resource-constrained device, but emits HTTP documents in response to REST requests. 它不需要常规的HTTP服务器,这对于资源受限的设备来说是过度的,但是为了响应REST请求而发出HTTP文档。 Perhaps you can design your own, keeping in mind that the concept of "service" is not available in Windows Mobile. 也许您可以自己设计,请记住Windows Mobile中不提供“服务”的概念。 In order to avoid keeping your app in foreground, you must perform some little research on "background tasks" in UWP, documentation was refreshed a couple of weeks ago (see https://msdn.microsoft.com/en-us/windows/uwp/launch-resume/support-your-app-with-background-tasks ) However, these ones seem to be designed for lightweight applications. 为了避免将您的应用放在前台,您必须对UWP中的“后台任务”进行一些研究,文档在几周前刷新(请参阅https://msdn.microsoft.com/en-us/windows/ uwp / launch-resume / support-your-app-with-background-tasks )但是,这些似乎是为轻量级应用程序设计的。 But perhaps you could design an HTTP listener in your application, generate the required documents and return them to the caller. 也许您可以在应用程序中设计HTTP侦听器,生成所需的文档并将它们返回给调用者。 I'm pretty sure that Project Katana cannot be included in an UWP solution, but I would recommend a quick reading on the subject as well. 我很确定Project Katana不能包含在UWP解决方案中,但我建议您快速阅读这个主题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在ASP.NET自托管Web API上配置SSL - Configuring SSL on ASP.NET Self-Hosted Web API 自托管的OWIN .NET 4.5 Web API 2不适用于Windows身份验证和https - Self-hosted OWIN .NET 4.5 Web API 2 does not work with Windows authentication and https ASP.NET Core 3.1 Web API: can it be self-hosted as Windows service with https and use some certificate like IIS? - ASP.NET Core 3.1 Web API : can it be self-hosted as Windows service with https and use some certificate like IIS? ASP.NET OWIN自托管控制台窗口无法从普通的ASP.NET Web API控制器动态启动 - ASP.NET OWIN self hosting console window couldn't start dynamically from a normal ASP.NET Web API Controller 更新配置并根据HTTP请求重新启动自托管的ASP.NET Web API 2 - Update configuration and restart self-hosted ASP.NET Web API 2 on HTTP request 对于自托管的ASP.Net Web API请求实体太大 - Request Entity Too Large for Self Hosted ASP.Net Web API 带有 IE 的 ASP.NET 自托管 Web API – 此页面无法显示 - ASP.NET Self hosted Web API with IE – This page cannot be displayed ASP.NET Identity 2.0,自托管的OWIN,NTLM和应用程序角色持久性 - ASP.NET Identity 2.0, self hosted OWIN, NTLM and application roles persistance 为什么我的声明在控制器中的用户中不可见? (ASP.NET WebAPI OWIN自托管) - How come my Claims are not visible in my User in the controller? (ASP.NET WebAPI OWIN Self Hosted) nuget软件包“ Microsoft ASP.NET Web API 2.1 OWIN Self Host 5.1.1”使用的主机是什么? - What's the host used by nuget package “Microsoft ASP.NET Web API 2.1 OWIN Self Host 5.1.1”?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM