Feedback on ASP.NET Web API

Clean the System.Web.Mvc and System.Web.Http seoaration

There are several things that have the same name but different types, as they live in different namespaces. Usually System.Web.Mvc and System.Web.Http.

This is going to be really confusing and it will add a lot of not pleasant surprises. I show some of the surprises and confusion in this post: http://pedroreys.com/2012/03/14/asp-net-web-api-routing-needs-a-hug/

57 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Pedro ReysPedro Reys shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    ASP.NET Web API uses the new HTTP programming model introduced by the HttpClient in .NET 4.5, while the MVC abstractions use the HTTP abstractions from ASP.NET (HttpContext, etc). As such we need parallel but separate concepts in ASP.NET Web API.

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Dan KonigsbachDan Konigsbach commented  ·   ·  Flag as inappropriate

        Unfortunately, the msdn.microsoft.com documentation does little to make the distinction clear.

        Here's what you'd like to see (but won't) in the "Remarks" for each of the classes that appear in both namespaces:

        System.Web.Mvc is used by ASP.NET MVC, which is used for building Web sites.
        System.Web.Http is used by ASP.NET MVC Web API, which is used for building Web services.

      Feedback and Knowledge Base