Chris R
52f4a83139
React to WebEncoders changes.
2015-10-30 17:59:19 -07:00
Pranav K
0fedda5855
Allow enums to be serialized by SessionStateTempDataProvider
...
Fixes #3141
2015-10-24 08:16:19 -07:00
Ajay Bhargav Baaskaran
eb398c811d
Added LocalRedirectresult
...
- Fixes #3346
- Added helper method in controller
- Added relevant tests
2015-10-23 12:58:41 -07:00
Ajay Bhargav Baaskaran
624c918de5
[ Fixes #3274 ] Added DiagnosticsSource for ViewComponent
2015-10-23 12:51:12 -07:00
ryanbrandenburg
0b8fe87596
* Allow null ViewData and TempData
2015-10-22 17:28:26 -07:00
Doug Bunting
c267ef3904
Rename `AppendEncoded()` to `AppendHtml()` and `SetContentEncoded()` to `SetHtmlContent()`
...
- #3225 , 3 of 3
2015-10-22 16:57:47 -07:00
Doug Bunting
40b7636b72
Use `ModelMetadata.GetDisplayName()` in error message replacing `FormatException` and `OverflowException`
...
- #3227
- much of change is to tests, creating and passing `ModelMetadata`
- updated `InputFormatterContext` to make `ModelMetadata` available to `JsonInputFormatter`
- walk `ModelMetadata` tree to get information about property with an issue
- add missing `null` checks in `ModelStateDictionaryExtensions`
2015-10-22 15:50:36 -07:00
ryanbrandenburg
da731fc641
Add logging to ActionResults and ControllerActionInvoker
2015-10-21 13:16:14 -07:00
Eilon Lipton
55b72c04bf
Add high-pri doc comments for views, controllers, HTML helpers, Startup
2015-10-20 18:24:56 -07:00
Pranav K
8b0c157296
Rename ModelState (the type) -> ModelStateEntry
...
Fixes #3326
2015-10-20 16:43:00 -07:00
Ryan Nowak
173f00fda7
Update to use DiagnosticSource
2015-10-20 11:47:29 -07:00
Ajay Bhargav Baaskaran
d40e6612a4
Moving the order of generated hidden tags for checkbox to end of the form
...
- #2994
- Affects both HtmlHelper and TagHelper scenarios
- Checkboxes not enclosed in a form will generate inline hidden tags
- Added necessary properties to FormContext
- Added some functional and unit tests
2015-10-14 15:43:13 -07:00
Ryan Nowak
9342cb0ab7
Suppress [Obsolete] warnings from DiagnosticSource
2015-10-08 12:47:08 -07:00
Pranav K
30f5826380
Use Type.GetMethod in ViewComponentMethodSelector
...
Fixes #3211
2015-10-06 16:21:56 -07:00
Pranav K
a602d548e2
Allow ViewFeature tests to run in dnxcore50
2015-10-06 09:46:49 -07:00
Pranav K
f57e180971
Renaming Microsoft.Framework.* -> Microsoft.Extensions.*
2015-10-03 15:44:53 -07:00
Ryan Nowak
6185b16795
Custom dictionary type for attributes
2015-10-02 18:08:58 -07:00
Ryan Nowak
4e08eda58d
Use pooled memory for the streamwriter
2015-10-02 14:35:15 -07:00
Ryan Nowak
306776ff63
Minor cleanup/refactor of ViewResult
...
- Make ViewExecutor a service
- Add facades for ViewResult/PartialViewResult
- Add eventing for ViewFound/NotFound in PartialViewResult
- Add eventing around view execution
- Cleanup of some various eventing & our tests code
2015-10-02 08:18:00 -07:00
Kiran Challa
130d94eb7e
[ Fixes #3068 ] TempData fails silently without sessions middleware
2015-10-01 19:28:46 -07:00
Ajay Bhargav Baaskaran
eefa58e617
[ Fixes #3043 ] Overflow exceptions converted to invalid value messages
2015-09-29 16:24:19 -07:00
Ryan Nowak
0d6edf240a
Move ModelExplorer to ViewFeatures
2015-09-28 14:14:40 -07:00
Pranav K
18c80d156c
Replace NotNullAttribute with thrown exceptions
2015-09-26 23:48:43 -07:00
Doug Bunting
eff10cdd66
Move `ModelStateDictionaryExtensions` into `Microsoft.AspNet.Mvc.ModelBinding` namespace
...
- missed the inconsistency when reviewing
- kept class in ViewFeatures assembly because it depends on `ExpressionHelper`
nit: wrap some long lines
2015-09-26 18:15:04 -07:00
Muchiachio
b28debf442
Generic ModelStateDictionary add and remove extensions
...
- Added generic add model error and remove extensions for
ModelStateDictionary, to avoid using hard coded strings then specifying
model state dictionary keys.
- Added generic removal all extension for ModelStateDictionary, to
support removing all the model state keys for given expression.
aspnet/Mvc#3164
2015-09-26 18:14:58 -07:00
Pranav K
6a0a24481a
Asynchronously flush the HttpResponseStreamWriter after a view has been rendered.
...
This solves a perf issue for views which produce content that is smaller
than the buffer size of HttpResponseStreamWriter. In this case, the writer
ends up synchronously writing to the Response as part of Dispose which
affects perf.
2015-09-25 21:07:15 -07:00
Kirthi Krishnamraju
0889b18f95
Add localizers to validation attributes
2015-09-25 16:13:21 -07:00
Ajay Bhargav Baaskaran
9c81b95d1b
Renamed Controller.Context to Controller.HttpContext
...
- #3165
2015-09-25 11:01:30 -07:00
Ryan Nowak
b544aabfdb
Fix #3111 - Don't trounce content-type in VCR
...
This change makes ViewComponentResult respect an existing Content-Type
setting on the HttpResponse. Code is very similar to the code in
ViewExector, and includes the same quirks.
2015-09-21 23:20:20 -07:00
Ryan Nowak
a318c4599a
API Review - Split up .Actions
...
Abstractions - Core MVC extensibility
Controllers - MVC implementations of .Abstractions and supporting
contracts
Infrastructure - General purpose support APIs. Metadata APIs that don't
fit clearly with a feature or with .Abstraction
2015-09-21 21:54:02 -07:00
Pranav K
7b433820b1
Changes per PR comments
...
Reformatting parameter identation
2015-09-17 15:42:58 -07:00
Pranav K
a68d9e4cb1
Replace NotNullAttribute with thrown exceptions
2015-09-17 11:56:44 -07:00
Ryan Nowak
538cd9c191
Move less-commonly used types out of .Rendering
2015-09-16 23:52:29 -07:00
Ryan Nowak
046cb976b3
Move ActionResult classes back to main namespace
2015-09-16 21:42:31 -07:00
Ryan Nowak
9a15b54d30
Flow IHtmlContent through to the razor buffer
2015-09-16 16:17:40 -07:00
Ryan Nowak
a707311d9e
Fix #3087 - use IHtmlContentBuilder in TagBuilder
...
Improves authoring experience when using TagBuilder by taking advantage of
IHtmlContentBuilder an its extension methods.
TagBuilder.InnerHtml is no longer settable.
2015-09-16 10:03:03 -07:00
Ryan Nowak
94388a8804
React to BufferedHtmlContent changes
2015-09-13 13:51:53 -07:00
Doug Bunting
ae57844c6a
Make a few arrays explicitly `object[]`
...
- react to aspnet/aspnet.xunit#13
- latest xUnit bits maintains array types correctly, failing some `Type`-related assertions
- previous xUnit versions mapped all arrays to `object[]`
- fix likely part of xunit/xunit@bd6814c
2015-09-08 21:44:32 -07:00
Ryan Nowak
465b4ce0df
Use TelemetrySource
2015-09-06 20:23:05 -07:00
Ryan Nowak
076ce6a8a1
Make ModelBindingResult a struct.
2015-09-03 12:52:50 -07:00
N. Taylor Mullen
4fb2053f34
Update project.json to have warningsAsErrors accept a bool.
2015-09-02 15:35:13 -07:00
Hao Kung
3ebdcc5f6f
React to options changes
2015-09-02 14:07:06 -07:00
Ryan Nowak
229724c4ea
Reorganize MVC namespaces
2015-09-01 22:28:33 -07:00
Chris R
dd737ce946
Use new HttpContext.Features API.
2015-08-31 09:19:14 -07:00
Chris R
f2db0d1483
React to string[] -> StringValues changes.
2015-08-28 16:36:19 -07:00
Ajay Bhargav Baaskaran
0beb39ec1c
[ Fixes #2947 ] Default ContentType is not set when user specified Response.ContentType exists
2015-08-24 12:17:18 -07:00
Doug Bunting
a045324d3a
Do not include compiler-generated names in expression names
...
- #2890
- add lots of `ExpressionHelper` tests using `IdFor()` and `NameFor()` (which are thin veneers)
2015-08-23 14:22:49 -07:00
Ryan Nowak
6d365e9a32
Make ValueProviderResult a string-ish struct
2015-08-21 11:02:40 -07:00
Doug Bunting
f10a071da3
Preserve `ViewDataDictionary.ModelType` for `Nullable<T>` properties when `Model` is non-`null`
...
- #2539
- reuse `ModelMetadata` and occasionally `ModelExplorer` when `ModelType` is `Nullable<T>`
2015-08-18 10:33:40 -07:00
Ryan Nowak
e384938425
Add more event notification data points
...
Also includes some cleanup of the testing code that we're using with
proxies.
2015-08-16 16:42:58 -07:00