具有Azure应用服务上的OWIN'SystemWeb'的Web API应用 [英] Web API app with OWIN 'SystemWeb' on Azure App Service

查看:72
本文介绍了具有Azure应用服务上的OWIN'SystemWeb'的Web API应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建在.NET中使用Identity 2.1.0框架的应用程序.我在Visual Studio 2015中将项目启动为Empty Web App(模板).现在,我在项目中使用Microsoft.AspNet.WebApi.OwinMicrosoft.Owin.Host.SystemWeb NuGet软件包.我了解OWIN是为了避免使用单片框架并指定较小的应用程序组件如何与服务器交互而制定的规范.但是,我需要部署到Azure App Services.

I am creating app which uses Identity 2.1.0 framework in .NET. I started project in Visual Studio 2015 as Empty Web App (template). Now, I use Microsoft.AspNet.WebApi.Owin, and also Microsoft.Owin.Host.SystemWeb NuGet packages in my project. I understand that OWIN is a specification made to avoid monolithic frameworks and to specify how smaller application components interact with servers. However, I have requirement to deploy to Azure App Services.

我发现了一些示例(博客),其中人们将OWIN Web Api应用部署为自托管给Azure云服务工作者角色.但是我不想要这个,因为我不使用Cloud Service.

I have found examples (blogs) where people deploy OWIN Web Api app as self-hosted to the Azure Cloud Services worker role. But I don't want this, as I don't use Cloud Service.

由于我正在使用Microsoft.Owin.Host.SystemWeb,因此我是否可以将其部署到Azure App服务(我假设它管理内部IIS实例)?

Since I am using Microsoft.Owin.Host.SystemWeb, am I going to be able to deploy this to Azure App service (which I assume manages internal IIS instance) ?

.NET生态系统新手-请原谅我在问题中的任何可能重复之处.

.NET ecosystem newbie here - so please excuse me for any possible redundancies in the question.

推荐答案

Microsoft.Owin.Host.SystemWeb设计用于在IIS中托管,并且所有Azure App Service Web应用程序都在IIS中托管,因此这正是您想要的(事实上,self -托管可能不适用于Azure App Service).

Microsoft.Owin.Host.SystemWeb is designed for hosting in IIS and all Azure App Service web apps are hosted in IIS, so this is exactly what you want (In fact, self-hosting likely won't work with Azure App Service).

这篇关于具有Azure应用服务上的OWIN'SystemWeb'的Web API应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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