简体   繁体   English

我可以在生产环境中使用webapi吗?

[英]can I use webapi in a production environment?

Recently I was researching the ability to use the new Web Api framework from Microsoft for REST http services in a client's project. 最近,我正在研究在客户的项目中使用Microsoft的新Web Api框架来实现REST http服务的能力。 However, I believe the API is only in beta and not fully released. 但是,我认为API仅处于测试阶段,尚未完全发布。 My application is currently running on .net 4.0 and using MVC3. 我的应用程序当前正在.net 4.0上运行并使用MVC3。 Couple questions I have on this: 我对此有几个问题:

Does it work with MVC3, .Net 4.0? 它适用于MVC3,.Net 4.0吗?

What are the license implications of using WebApi in production? 在生产中使用WebApi有哪些许可证含义? My client has in the past been concerned with using beta products in production so I will need to be able convince them that there is no risk or problems with using this. 我的客户过去一直关注在生产中使用测试版产品,所以我需要能够说服他们使用这个产品没有风险或问题。

I hope to use Web Api as it seems to do exactly what I want. 我希望使用Web Api,因为它似乎完全符合我的要求。 Alternatively I will have to consider WCF Data Services. 或者,我将不得不考虑WCF数据服务。 Or is there another alternative to produce REST services. 或者是否有另一种产生REST服务的替代方案。

  1. It does work with .NET 4.0. 它适用于.NET 4.0。
  2. Web API is part of MVC4. Web API是MVC4的一部分。 Although I think it could work in a MVC3 application, I don't think it's officially supported. 虽然我认为它可以在MVC3应用程序中工作,但我不认为它是正式支持的。
  3. The beta release has a "go live" license, which means that it can be used in production - but it's a beta release, so it's not officially supported. 测试版具有“上线”许可证,这意味着它可以在生产中使用 - 但它是测试版,因此它不受官方支持。 Also, the final framework will definitely change, so a code which works in Beta may not work in the final release. 此外,最终框架肯定会发生变化,因此在Beta版中运行的代码可能无法在最终版本中使用。 The project is open sourced now, so you can look at the latest bits at http://aspnetwebstack.codeplex.com . 该项目现已开源,您可以在http://aspnetwebstack.codeplex.com查看最新信息。
  4. There are many other alternatives for creating REST services. 还有许多其他替代方法可用于创建REST服务。 Plain-old WCF works, WCF Data Services are interesting if you want mostly expose DB-backed data, and there are some non-Microsoft stacks as well. 普通的WCF工作,如果你想要暴露数据库支持的数据,WCF数据服务很有趣,并且还有一些非Microsoft堆栈。

See the EULA at %ProgramFiles(x86)%\\Microsoft ASP.NET\\ASP.NET MVC 4\\eula.rtf 请参阅EULA at%ProgramFiles(x86)%\\ Microsoft ASP.NET \\ ASP.NET MVC 4 \\ eula.rtf

It says this: 它说:

If you comply with the rest of these license terms, you may also distribute to third parties or deploy for third parties to access over the Internet the ASP.NET programs that you develop using the software, provided that... 如果您遵守其余的许可条款,您也可以分发给第三方或部署第三方,以便通过Internet访问您使用该软件开发的ASP.NET程序,前提是......

So basically that's a yes. 所以基本上这是肯定的。

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

相关问题 在 Azure App Service for ASP NET App 中,我可以将什么用作 static 参考,指示是在生产环境中还是在开发环境中? - In Azure App Service for ASP NET App, what I can use as a static reference indicating whether in production or development environment? 如何在生产中而不是在测试中使用迁移? - How can I use migrations in production, but not in test? 如何在WebAPI .NET中将XML用作数据源 - How can I use XML as a data source in WebAPI .NET 如何在 .net core 2.2 webapi 中访问 GitLab CI CD 环境变量 - How can I access GitLab CI CD Environment variables in .net core 2.2 webapi 我可以在.settings文件中使用环境变量吗? - Can I use environment variables in a .settings file? 可以使用localdb进行开发并将mssql服务器用作生产环境吗? - can I use localdb for development and mssql server as production? 我可以在生产应用程序中使用EF Core 2.0吗? - I can use EF Core 2.0 in production applications? 我可以在ASP.NET Web Forms 4.5中使用WebAPi的全部功能吗? - Can I use full features of WebAPi in ASP.NET Web Forms 4.5? 如何使用DelegatingHandler包装由Aspnet WebApi返回的通用类型? - How can I use a DelegatingHandler to wrap a generic type returned by Aspnet WebApi? 如何加载 dll 并将路由 url 分配给方法以将它们用作 webAPI 调用? - how can i load a dll and assign routing url to methods to use them as webAPI calls?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM