Pranav K
f9d53e341c
* Simplify MvcOptions
...
* Remove facades for accessing Options<T> and pass options to the invoker
Fixes #2266
Fixes #2269
2015-04-07 14:45:53 -07:00
Doug Bunting
94721f09a9
Remove duplicate tests
...
- duplication in data sets confuses xUnit
2015-04-07 11:00:45 -07:00
Kiran Challa
ee4ffea294
[ Fixes #2190 ] Remove GetSupportedContentTypes method from IOutputFormatter and move to a separate metadata interface
2015-03-18 16:13:14 -07:00
Kiran Challa
489fc52df8
[ Fixes #2108 ] StringOutputFormatter fails when HttpNotAcceptableOutputFormatter is used
2015-03-17 11:04:46 -07:00
Kiran Challa
3d247ec028
[ Fixes #2086 ] FilePathResult WriteFileAsync uses SendFile feature incorrectly
2015-03-16 13:05:12 -07:00
Ajay Bhargav Baaskaran
db728cd386
Introducing TempData
...
- Issue #455
- Updated MVC sample
- Added relevant tests
2015-03-10 12:04:05 -07:00
ianhong
1144ba72d5
Porting HttpUnauthorizedResult
2015-03-06 10:18:51 -08:00
Praburaj
a9feed4de1
Rename Microsoft.AspNet.Http.Interfaces => Microsoft.AspNet.Http
2015-03-05 16:25:15 -08:00
Hao Kung
c290e897b0
React to DI
2015-03-04 19:26:54 -08:00
Ajay Bhargav Baaskaran
dc49a2c194
Added HttpNotFoundObjectResult and added relevant tests
2015-02-24 11:57:48 -08:00
Ajay Bhargav Baaskaran
3d30fd653e
added Link method to IUrlHelper
2015-02-16 13:38:12 -08:00
Youngjune Hong
c7d09d7ad7
Introducing UrlActionContext and UrlRouteContext, and updating IUrlHelper accordingly
2015-02-05 19:41:21 -08:00
Ajay Bhargav Baaskaran
ac6a1a6a80
Replaced status code number with constants
2015-02-05 16:43:59 -08:00
Harsh Gupta
8e91c1ada6
[Fix for #1850 ]Produces, Consumes and ObjectResult throw if there is a match all content type.
2015-01-30 15:54:58 -08:00
Ajay Bhargav Baaskaran
17aa21dc25
Added StatusCode property to OutputFormatterContext
...
- Fixes issue #1809
- Added relevant tests
2015-01-26 17:32:04 -08:00
Kiran Challa
5c2dc5db11
[Fixes#1792]Separate XML serializers to Microsoft.AspNet.Mvc.Xml
2015-01-22 15:09:20 -08:00
Kiran Challa
0e9091f0eb
[ Fixes #1841 ] Change XML DCS and XmlSerializer output formatters to not derive from the base XmlOutputFormatter
2015-01-20 17:22:04 -08:00
Chris Ross
d51dad9560
Handle IFileSystem rename.
2015-01-20 12:16:30 -08:00
Stephen Halter
d34554e3ff
Handle HttpFeature rename
2015-01-18 21:06:12 -08:00
Ryan Nowak
692a07240c
Some cleanup of ActionResults - #657
...
In general all properties are get/set so filters can change them.
- some validate for not-null
- where we use services it's get/set also
Services are resolved in the Execute method if not provided.
A few more ActionResults that return a body have the ability to set a
status code now (optional).
2015-01-16 17:29:56 -08:00
Ajay Bhargav Baaskaran
b02dea98e7
Using set instead of add in Created ActionResults
2015-01-16 12:34:40 -08:00
Ajay Bhargav Baaskaran
7c0eb56e59
ContentResult sets Charset along with ContentType
...
- Sets default ContentType and Charset if null
- Added relevant unit and functional tests
2015-01-16 12:24:44 -08:00
Yishai Galatzer
9ac37fbc7a
Rename TextPlainFormatter and remove other minor warnings
...
#1631
2015-01-16 12:09:53 -08:00
Kiran Challa
02f4ca9f05
[ Fixes #1791 ]Remove XML formatter from defaults
2015-01-15 15:46:49 -08:00
Chris Ross
9aff289dfe
Handle PipelineCore rename.
2015-01-15 15:25:17 -08:00
Chris Ross
91d7e382d1
Consume new strongly typed headers. Remove temp implementations.
2015-01-14 15:51:34 -08:00
Hao Kung
157b633758
React to IContextAccessor -> IScopedInstance
2015-01-12 10:25:21 -08:00
sornaks
5262dfd577
Adding SerializableError - a serializable container for the purpose of output conneg.
2015-01-06 14:07:45 -08:00
Ajay Bhargav Baaskaran
eb7283fced
added BadRequest and Created Action Results with related unit and functional tests.
2015-01-05 11:07:42 -08:00
Doug Bunting
3e26142de1
Remove use of `Assert.DoesNotThrow()`
...
- no longer in xunit 😃
2014-12-11 15:51:15 -08:00
Doug Bunting
7eb106676c
Add missing license headers
...
- #EngineeringDay
- license present but incorrect in just a few files
- skip generated files such as Resources.Designer.cs and files under
test\Microsoft.AspNet.Mvc.Razor.Host.Test\TestFiles\Output
2014-11-20 22:54:05 -08:00
Doug Bunting
315908af5f
Apply VS' FormatDocument and RemoveAndSort to all *.cs files
...
- #EngineeringDay
- VS does not yet format auto-properties nicely; reverted what it did
Also revert changes under
- test/Microsoft.AspNet.Mvc.Razor.Host.Test/TestFiles
2014-11-20 21:15:46 -08:00
Doug Bunting
5e067cdb9e
Delete trailing whitespace
...
- #EngineeringDay
- Total replaced: 660 Matching files: 270 in *.cs
- Total replaced: 250 Matching files: 32 in all other files
- Total replaced: 22 Matching files: 8 in a few stragglers
Did not change files under following directories
- test\Microsoft.AspNet.Mvc.Razor.Host.Test\TestFiles\Output
- test\Microsoft.AspNet.Mvc.FunctionalTests\compiler\resources
- test\WebSites\TagHelpersWebSite
(Razor generates trailing whitespace in a case or two)
2014-11-20 16:18:09 -08:00
Ryan Nowak
e37f1ad85f
Fix #1502 - Remove duplicate unit tests
2014-11-04 13:30:15 -08:00
Ryan Nowak
0ccfcc4316
Fix for breaking API change from routing
2014-10-31 18:23:19 -07:00
Pranav K
78bda87730
Replacing ViewResultBase with ViewExecutor
2014-10-22 08:47:22 -07:00
jacalvar
f8035d6b04
[ Fixes #1201 ] Handle virtual paths in FilePathResult
2014-10-16 13:05:55 -07:00
Pranav K
de77c92a0a
Reviving PartialViewResult and associated methods on Controller
...
Fixes #824
2014-10-15 18:28:08 -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
Hao Kung
6dfcfaa7eb
React to options changes
2014-10-08 12:56:53 -07:00
sornaks
0d8a7368d9
Issue #1141 - When Accept header or Accept-Charset header has invalid QualityFactor we throw.
...
Fix: Imitating the same behavior as it is in WebApi. We ignore the entire header even if one part of it is invalid.
2014-10-03 16:25:51 -07:00
jacalvar
a2023d35ee
[ Fixes #429 ] FileResult
...
1) Implemented FilePathResult to efficiently return files from disk.
2) Implemented FileStreamResult to return content from a stream.
3) Implemented FileContentResult to return content from a byte array.
2014-10-02 12:50:24 -07:00
jacalvar
f2dab5eaa7
[ Fixes #1156 ] EmptyResult should not set status code (or do anything for that matter)
2014-09-22 14:12:00 -07:00
harshgMSFT
7a3dc352c9
1. Moving the HttpNotAcceptableOutputFormatter to product code.
...
2. Renaming the NoContentFormatter to HttpNoContentOutputFormatter.
3. Updating the test to use mock.
2014-09-12 14:14:44 -07:00
harshgMSFT
e884a476e9
Responding to comments
2014-09-12 13:56:33 -07:00
harshgMSFT
abf27d883f
GetSupportedContentTypes to take in declared and runtime type.
2014-09-12 13:56:30 -07:00
harshgMSFT
7448bf2843
Responding to comments
2014-09-12 13:56:22 -07:00
harshgMSFT
33173d3031
Fix for Content negotiation should fallback to the first formatter that can write the type #1033
...
- Includes functional and unit tests.
2014-09-12 13:56:14 -07:00
jacalvar
b6fb7ac7df
Take advantage of nameof to improve our usage of MemberData across the code base.
...
Substituted all instances of [MemberData("PropertyName")] for [MemberData(nameof(PropertyName))]
This change enables us to take advantage of IDE features like Navigate to source,
find all references, etc. When using Visual Studio.
2014-09-02 13:53:03 -07:00