ASP. net mvc 4 BETA: enhanced web API

Source: Internet
Author: User
Tags windows azure sdk azure sdk

ASP. net mvc 4 beta new features:

(1) ASP. NET web API

(2) Add a mobile Project template

(3) Support for mobile app features, jquery moblie, view switcher and browser overriding

(4) Improve CustomizationCodeGenerator

(5) Enhance the asynchronous method. The asynchronous generator provides Response parameters to support task instances.

(6) single page applicationProgramSupport

(7) Enhance the default template function.

(8) better support for Windows azure SDK

(9) Improve razor view engine.

(10) When webmatrix. webdata. dll is put in the project directory/bin, froms authentication is performed by default when the request URL is sent.

ASP. NET Web APIs have the following features:

Modern HTTP programming model:

One of the most powerful functions, it can publicly force other data in httpwebrequest

Full support for routes:

It is also based on route, so it supports all MVC functions, such as [httppost] and other attributes.

Content negotiation:

Its client and server use the same API and data format. JSON and XML are supported by default. You can also develop your own data transmission format on this basis.

Model binding and validation:

It is easier to use httpwebrequest data during model binding.

Filters:Like the basic functions of MVC, it supports actions, verification filtering, and error handling.

Query composition:

It can publish interfaces that can be queried, such as iqueryable. Odata protocol is also supported.

Improved testability of HTTP details:

On this platform, the HTTP line details, context objects, and other actions now have two instance objects: httprequestmessage and httpresponsemessage. It enables you to pass custom types in httpwebrequest.

Improved inversion of control (IOC) via dependencyresolver:

Like the MVC Architecture, you can easily implement the IOC design pattern.

Code-Based Configuration:

You only need to use several lines of code to set the functions of the web API. You do not need to modify the content of any configuration file.

Self-Host:As mentioned above, the web API service allows independent services. It is called self-host.

 

For more resources: see http://www.asp.net/whitepapers/mvc4-release-notes#_Toc303253813

Asp.net MVC web API tutorial

: Http://www.asp.net/mvc/mvc4

Http://weblogs.asp.net/jgalloway/archive/2012/02/16/asp-net-4-beta-released.aspx

Getting started with ASP. NET web API

Http://www.asp.net/web-api

Introducing ASP. net mvc 4 Beta with Web APIs

Http://blogs.msdn.com/ B /carlosfigueira/archive/2012/02/16/introducing-asp-net-mvc-4-beta-with-web-apis.aspx

Bundling and minification in ASP. net mvc 4

Http://www.dotnetexpertguide.com/2011/12/bundling-and-minification-aspnet-mvc4.html

Self-host a web API (C #)

http://www.asp.net/web-api/overview/hosting-aspnet-web-api/self-host-a-web-api

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.