ASPNET-5外文文献和翻译

上传人:桔**** 文档编号:511638450 上传时间:2023-01-11 格式:DOCX 页数:23 大小:149.56KB
返回 下载 相关 举报
ASPNET-5外文文献和翻译_第1页
第1页 / 共23页
ASPNET-5外文文献和翻译_第2页
第2页 / 共23页
ASPNET-5外文文献和翻译_第3页
第3页 / 共23页
ASPNET-5外文文献和翻译_第4页
第4页 / 共23页
ASPNET-5外文文献和翻译_第5页
第5页 / 共23页
点击查看更多>>
资源描述

《ASPNET-5外文文献和翻译》由会员分享,可在线阅读,更多相关《ASPNET-5外文文献和翻译(23页珍藏版)》请在金锄头文库上搜索。

1、ASP.NET 5 : Introducing the ASP.NET 5 PreviewDaniel Roth| Special connect(); issue ASP.NET shipped as part of the Microsoft .NET Framework 1.0, released in along with Visual Studio . It was an evolution of Active Server Pages (ASP) that brought object-oriented design, the .NET Base Class Libraries (

2、BCLs), better performance and much more. ASP.NET was designed to make it easy for developers used to writing desktop applications to build Web applications with ASP.NET Web Forms. As the Web evolved, new frameworks were added to ASP.NET: MVC in , Web Pages in , and Web API and SignalR in . Each of t

3、hese new frameworks built on top of the base from ASP.NET 1.0.With ASP.NET 5, ASP.NET is being reimagined just like ASP was reimagined to ASP.NET in . This reimagining brings many new features: Full side-by-side support: ASP.NET 5 applications can now be installed on a machine without affecting any

4、other applications on the machine. Cross-platform support: ASP.NET 5 runs and is supported on Windows, Mac and Linux. Cloud-ready: Features such as diagnostics, session state, cache and configuration are designed to work locally and in the cloud. Faster development: The build step is removed; just s

5、ave source files and refresh the browser and compilation happens automatically. MVC, Web Pages and Web API: These are all merged together, simplifying the number of concepts. Flexible hosting: You can now host your entire ASP.NET 5 application on IIS or in your own process.Getting Started with ASP.N

6、ET 5 PreviewIn this article, Ill give an overview of the new experiences the ASP.NET development teamof which Im a parthas created for ASP.NET 5 and Visual Studio Preview. For general help with building and running ASP.NET 5 applications, where you can find step-by-step guides and additional docume

7、ntation. In addition, we also post updates regularly To get started, download and install Visual Studio Preview.Overview of the ASP.NET 5 RuntimeASP.NET 5 has been rebuilt from the ground up to support building modern Web applications and services. Its open source, cross-platform and works both on-

8、premises and in the cloud. ASP.NET 5 is currently in Preview and under active development on GitHub ( Ill provide an overview of whats new in the ASP.NET 5 Preview along with pointers to where you can learn more.Flexible, Cross-Platform RuntimeAt its foundation, ASP.NET 5 is based on a new flexible

9、runtime host. It provides the flexibility to run your application on one of three different runtimes:1. Microsoft .NET Framework: You can run your ASP.NET 5 applications on the existing .NET Framework. This gives you the greatest level of compatibility for existing binaries.2. .NET Core: A refactore

10、d version of the .NET Framework that ships as a set of NuGet packages that you can include with your app. With .NET Core, you get support for true side-by-side versioning and the freedom to use the latest .NET features on your existing infrastructure. Note that not all APIs are available yet on .NET

11、 Core, and existing binaries generally need to be recompiled to run on .NET Core.3. Mono: The Mono CLR enables you to develop and run ASP.NET 5 apps on a Mac or Linux device. For more information, see the blog post, “Develop ASP.NET vNext Applications on a Mac,” atbit.ly/1AdChNZ.Regardless of which

12、CLR is used, ASP.NET 5 leverages a common infrastructure for hosting the CLR and provides various services to the application. This infrastructure is called the K Runtime Environment (KRE). While its somewhat of a mystery where the “K” in KRE comes from (a tribute to the Katana Project? K for Krazy

13、Kool?), the KRE provides everything you need to host and run your app.A New HTTP PipelineASP.NET 5 introduces a new modular HTTP request pipeline that can be hosted on the server of your choice. You can host your ASP.NET 5 applications on IIS, on any Open Web Interface for .NET (OWIN)-based server o

14、r in your own process. Because you get to pick exactly what middleware runs in the pipeline for your app, you can run with as little or as much functionality as you need and take advantage of bare-metal performance. ASP.NET 5 includes middleware for security, request routing, diagnostics and custom

15、middleware of your own design. For example, heres a simple middleware implementation for handling of the X-HTTP-Method-Override header:app.Use(context, next) = var value = context.Request.HeadersX-HTTP-Method-Override; if (!string.IsNullOrEmpty(value) context.Request.Method = value; return next(););

16、ASP.NET 5 uses an HTTP pipeline model similar in many ways to the OWIN-based model introduced with Project Katana, but with several notable improvements. Like Katana, ASP.NET 5 supports OWIN, but simplifies development by including a lightweight and easy-to-use HttpContext abstraction.Theres a Package for ThatPackage managers ha

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 解决方案

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号