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
Ryan Nowak
7666d5973f
fix build issue in coreclr
2014-10-15 17:32:06 -07:00
Ryan Nowak
5f47546d40
Use DefaultOrder in MvcOptionsSetup
2014-10-15 17:12:52 -07:00
Kiran Challa
e985c22528
[ Fixes #1216 ] Provide a property on JsonOutputFormatter to set serializer settings
...
[Fixes #1221 ] Rename OutputFormatter's WriteResponseContentHeaders to WriteResponseHeaders
[Fixes #932 ] Setting Json Serializer Settings
2014-10-15 09:27:09 -07:00
Hao Kung
448ac5a0dc
React to options and hosting changes
2014-10-14 19:20:28 -07:00
jacalvar
1680616fe5
[Issue #1133 ] RedirectToActionResult and UrlHelper should use HostString, PathString, etc. To build Urls.
...
Added tests to describe the current behaviour with Unicode hosts.
2014-10-14 16:12:29 -07:00
Hao Kung
b6bd7f5d78
React to UsePerRequestServices
2014-10-09 14:17:04 -07:00
YishaiGalatzer
67a30e491f
Introduce default order for framework ordered items to be -1000
2014-10-07 21:43:50 -07:00
sornaks
a88f59fc49
Issue #1176 : Renaming ActionDescriptor, ActionDescriptorProvider, ActionInvoker, ActionInvokerProvider, ActionExecutor, ModelBuilder, Tests. Either dropping "Reflected" or changing it to "Controller" depending on the context.
2014-10-06 20:21:55 -07:00
David Fowler
5890b5b254
Fixed up references
2014-10-05 13:24:00 -07:00
harshgMSFT
572ec0175c
Fix for 1071: Output Formatters should be invoked for writing out the response.
2014-10-03 10:54:59 -07:00
Kiran Challa
fdeff1188b
[ Fixes #926 ] Protocol & Host name ignored when creating action link
2014-09-26 17:20:56 -07:00
jacalvar
25838cee55
[ Fixes #911 ] RequireHttpsAttribute does not exist in MVC 6
...
1. GET requests will be redirected to the equivalent HTTPS url.
2. Requests with any other http method will fail with a 400.
2014-09-15 13:07:30 -07:00
David Fowler
70e809a430
Fixed test projects
...
- Removed bogus reference to configuration
2014-09-15 01:27:27 -07:00
Chris Ross
85ad1aeb96
Handle IBuilder rename to IApplicationBuilder.
2014-09-10 14:12:08 -07:00
David Fowler
34add2249e
Updated to use the new target framework in project.json
2014-09-04 02:02:40 -07:00
Pranav K
b8692c2c21
Updating FunctionalTests to use HttpClient abstractions
2014-09-01 11:16:54 -07:00
David Fowler
2e6e5307f6
Updated to use the new target framework in project.json
2014-08-28 22:14:10 -07:00
David Fowler
fa6b3acc4a
Removed source files from the project
2014-08-15 09:14:49 -07:00
Ben Brown
01f5fec210
Added Logging to Mvc
2014-08-01 15:33:47 -07:00
David Fowler
7e7c56ce48
Renamed configurations to frameworks in project.json
2014-07-13 21:58:12 -07:00
Chris Ross
240d969899
Add using statement for extension methods.
2014-07-08 10:19:16 -07:00
Ryan Nowak
0d7f38e10e
Commonize code to limit functional tests to a single site each
2014-06-25 09:00:34 -07:00
dougbu
0c6749a5e7
Catch MVC up with Helios rename
...
- allows builds to succeed after cleaning your repo (without NuGet.org source)
2014-06-23 14:05:47 -07:00
Brice Lambson
172dcd179b
Bump version to 6.0.0-*
2014-06-19 11:21:43 -07:00
Pranav K
85bd056780
CreateActionResult should work when action returns Task.
...
Fixes #647
2014-06-16 16:13:18 -07:00
harshgMSFT
10285d7d39
This additional constraint enables adding a route to the template (and potentially to the UseMvc method) without actually implementing the actual artifact.
...
For example without adding an area to a controller, a route can still be added to the template.
- Also added functional tests.
2014-06-16 11:24:22 -07:00
Pranav K
0123b38840
Adding missing files to kproj
2014-06-09 14:55:50 -07:00
Javier Calvarro Nelson
16f19b5cc6
Added functional tests to cover rendering views without layout and
...
to return a result without content.
2014-06-09 13:35:31 -07:00
Pranav K
822d84a2b4
Use default values when binding action arguments
...
Fixes #545
2014-06-09 11:44:26 -07:00
Yishai Galatzer
6d78f8adb3
Cache action descriptor providers and provide a race safe data structure to get the version.
...
The default implementation has a safe race, and does not allow for action description addition at runtime.
It can be replaced with an implementation that can reload.
Consumers of the new service that do extra caching are now responsible to look at the version and change the implementation.
2014-06-06 15:19:30 -07:00
Javier Calvarro Nelson
931a3cd809
Added functional tests for MVC.
...
Created a test project to hold functional tests, a basic
application for test purposes under test\WebSites and added
the first functional test to validate view rendering.
2014-05-28 12:46:41 -07:00