Go to file
Ryan Nowak 105c99cbf2 Fix #1370 - Always use the provided formatter in JsonResult
The change here is to always use the provided formatter, instead of using
it as a fallback. This is much less surprising for users.

There are some other subtle changes here and cleanup of the tests, as well
as documentation additions.

The primary change is that we still want to run 'select' on a formatter
even if it's the only one. This allows us to choose a content type based
on the accept header.

In the case of a user-provided formatter, we'll try to honor the best
possible combination of Accept and specified ContentTypes (specified
ContentTypes win if there's a conflict). If nothing works, we'll still run
the user-provided formatter and let it decide what to do.

In the case of the default (formatters from options) we do conneg, and if
there's a conflict, fall back to a global (from services)
JsonOutputFormatter - we let it decide what to do.

This should leave us with a defined and tested behavior for all cases.
2014-10-31 14:30:31 -07:00
samples Revert "Revert "Added a functional test for view precompilation"" 2014-10-30 14:38:44 -07:00
src Fix #1370 - Always use the provided formatter in JsonResult 2014-10-31 14:30:31 -07:00
test Fix #1370 - Always use the provided formatter in JsonResult 2014-10-31 14:30:31 -07:00
.gitattributes
.gitignore
CONTRIBUTING.md
LICENSE.txt
Mvc.NoFun.sln Add WebApiCompatShim project structure 2014-10-10 13:41:35 -07:00
Mvc.sln Revert "Revert "Added a functional test for view precompilation"" 2014-10-30 14:38:44 -07:00
NuGet.Config
README.md
Settings.StyleCop
build.cmd
build.sh Updating build.sh to latest 2014-10-01 11:10:15 -07:00
global.json * Updating path to functional test file and functional test references to 2014-10-06 10:30:26 -07:00
makefile.shade

README.md

ASP.NET MVC

ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and gives you full control over markup for enjoyable, agile development. ASP.NET MVC includes many features that enable fast, TDD-friendly development for creating sophisticated applications that use the latest web standards.

ASP.NET MVC in ASP.NET vNext includes support for building web pages and HTTP services in a single aligned framework that can be hosted in IIS or self-hosted in your own process.

This project is part of ASP.NET vNext. You can find samples, documentation and getting started instructions for ASP.NET vNext at the Home repo.