Filip W
f567258f14
changed GetFormat to virtual
2016-04-27 18:08:45 -07:00
Doug Bunting
d8d2e54506
Remove extra options to manipulate `JsonSerializerSettings`
...
- #4339 : remove non-recommended JSON formatter constructors
- affects `JsonInputFormatter`, `JsonOutputFormatter`, `JsonPatchInputFormatter`
- `JsonOutputFormatter` cleanup also impacts `JsonHelper`
- rename and make `SerializerSettingsProvider` class public; use it as appropriate
- #4409 : make `SerializerSetings` properties get-only and `protected`
- affects `JsonInputFormatter`, `JsonOutputFormatter`
Recommended patterns:
- change `JsonSerializerSettings` values in `MvcJsonOptions` for almost all customizations
- find `JsonOutputFormatter` in `MvcOptions.OutputFormatters` when limiting per-result formatters
- start with `JsonSerializerSettingsProvider.CreateSerializerSettings()` when customizing a per-result formatter
2016-04-27 14:48:16 -07:00
mnltejaswini
0788edbd4b
[Perf] Cache the metadata for known type "object"
...
Fixes #4377
2016-04-25 13:03:52 -07:00
Pranav K
b3a65b485f
Simplify assembly load on CoreCLR
...
Fixes #4328
2016-04-25 09:45:23 -07:00
Ryan Nowak
756cd2dab8
Remove OperationBindingContext
...
This change trims a few concepts that aren't really needed inside
ModelBinders anymore, and removes the OperationBindingContext class.
2016-04-25 09:29:03 -07:00
Kiran Challa
4e8e30437f
Merge branch 'release' into dev
2016-04-23 06:57:08 -07:00
Ryan Nowak
af58c2e6b6
Streamlining action selection and route values
...
Removes a few concepts we don't need
Improves documentation
More things are IDictionary instead of other random types
2016-04-22 17:36:23 -07:00
Kiran Challa
a259638d79
Filters provided by filter providers are made to never be cached
...
[Fixes #4504 ] Possible double-execution of filter providers
2016-04-22 16:56:08 -07:00
mnltejaswini
f1fe5e26fc
[Perf] RazorPage.CreateModelExpression is allocating expression names
...
Fixes #4469
2016-04-22 12:55:28 -07:00
Sebastien Ros
4b4d67e48e
Merge branch 'release' into dev
2016-04-22 11:54:56 -07:00
Sébastien Ros
2c639f83c4
Fixing BindNever attribute and Type model binding
...
Fixes #4505
2016-04-22 11:52:08 -07:00
Ryan Nowak
8efd12187c
Remove unused interface
2016-04-21 14:01:46 -07:00
jacalvar
683356ea59
Merge branch 'release' into dev
2016-04-21 10:39:45 -07:00
Ryan Nowak
87704c67e1
React to routing cleanup
2016-04-21 07:55:20 -07:00
jacalvar
d9aacd0f87
[Fixes 4509] Stop registering disposable objects in our controller helper methods
2016-04-20 17:00:34 -07:00
mnltejaswini
73dc7bf48b
[Perf] Check for Logger.IsEnabled in logging methods of MvcCoreLoggerExtensions
...
Fixes #4466
2016-04-19 11:49:56 -07:00
Doug Bunting
1492db35fa
Merge branch 'release' into dev
2016-04-16 13:07:08 -07:00
mnltejaswini
4e97c72eeb
[Perf]:Cache TypeConverters in SimpleTypeModelBinder
...
Fixes #4361
2016-04-15 18:23:49 -07:00
Doug Bunting
7a1ac034f9
Special-case use of `razorPage.Model` property in `ExpressionMetadataProvider`
...
- #3978
- better-aligns `ExpressionMetadataProvider` with `ExpressionHelper`
nit: mock less in `RazorPageCreateModelExpressionTest`
2016-04-15 17:15:33 -07:00
mnltejaswini
a565f9ff58
[Perf] Reduce DefaultTagHelperContent allocations in LinkTagHelper and ScriptTagHelper
...
Fixes #4468
2016-04-15 13:29:49 -07:00
mnltejaswini
fa34f61d46
[Perf] Avoid Service Provider lookups when activating common Singleton properties of a Razor Page
...
Fixes #4244
2016-04-14 16:52:25 -07:00
BrennanConroy
588abbc588
Merge branch 'release' into dev
2016-04-14 15:55:14 -07:00
BrennanConroy
010e8a4e37
Move dependency to netstandard only
2016-04-14 15:54:59 -07:00
BrennanConroy
4f8c1d49d0
Merge branch 'release' into dev
2016-04-14 13:53:24 -07:00
BrennanConroy
b35814f035
Add serialization.primitives for Newtonsoft.Json
2016-04-14 13:53:10 -07:00
Ryan Nowak
a73db1a9bd
Fixes #4471 - Don't call Enum.ToString()
2016-04-14 10:15:55 -07:00
Doug Bunting
ee2cfa1963
Merge remote-tracking branch 'origin/release' into dev
2016-04-13 16:04:14 -07:00
Doug Bunting
eda647e270
Complete the doc comments for filters
...
- #3851
- add lots of words
- correct that vs. which confusion
2016-04-13 16:01:30 -07:00
Ryan Nowak
cffc381a69
Update xproj output path
2016-04-13 14:03:44 -07:00
Eilon Lipton
0cf9a4b7f2
Merge branch 'release' into dev
2016-04-13 12:10:53 -07:00
Eilon Lipton
4f24339740
Fix package metadata
2016-04-13 12:07:04 -07:00
Ryan Nowak
84caf6968d
Merge branch 'release' into dev
2016-04-11 15:50:26 -07:00
Ryan Nowak
3ec60a0181
Fix #4447 - Teach MVC to understand defaults
...
The wireup for defaults in attribute routes was missing
2016-04-11 14:38:29 -07:00
Doug Bunting
82fd17d050
Merge branch 'release' into dev
2016-04-08 16:06:59 -07:00
Doug Bunting
a0c8834c70
Preserve existing metadata in `ViewDataDictionary` where possible
...
- #4116
- generalize rules for `ModelMetadata` creation; minimize metadata changes when Model is updated
- down to a single special case in VDD for `Nullable<T>`
- note existing functional tests did not need to change
- remove `ViewDataDictionary(ViewDataDictionary, object)` constructor; use `new VDD<object>(source, model)`
- allow all `Model` assignments in a view component
- copy-constructed VDD in `ViewComponentContext` previously preserved the source's declared type
nits:
- do not call `virtual SetModel()` method from constructor; now mostly redundant
- logic in copy constructor and `SetModel()` is consistent but different enough to keep code separate
- add some missing doc comments
- fix doc comment property versus type confusion; never need to specify `ViewDataDictionary.` prefix
- fix a few `TemplateBuilder` comments and remove unnecessary `model: null` argument to VDD constructor
2016-04-08 14:44:36 -07:00
Ryan Nowak
7b50ea39da
Merge branch 'release' into dev
2016-04-08 12:26:52 -07:00
Ryan Nowak
a55544681d
Fix for #3659 - handle IHtmlContent in localization
...
This change corrects handling of IHtmlContent instances in
LocalizedHtmlString by making using of FormattableHtmlString.
2016-04-08 11:20:49 -07:00
mnltejaswini
f4e35f5ba0
[Perf] Remove the validations in ControllerActivator and ViewComponentActivator which are redundant. These
...
validations are already done when selecting a controller and view component
Fixes #4367
2016-04-08 10:07:33 -07:00
Pranav K
2bf79a874d
Removing imports from src projects
2016-04-08 06:49:31 -07:00
Pranav K
1d4363305c
Merge branch 'release' into dev
2016-04-08 06:49:31 -07:00
Ryan Nowak
d4c7dc3a83
Make HashSets in TempData lazy
...
TempData is frequently created but not modified, this reduces the cost of
that without much complexity.
2016-04-07 13:09:56 -07:00
Pranav K
cf460e9a63
Merge branch 'release' into dev
2016-04-06 19:04:58 -07:00
Pranav K
67f54e82f9
Fix versioning
2016-04-06 18:15:14 -07:00
Ryan Nowak
3b3bfb5a69
Remove using Task.FromResult where possible
...
Believe it or not, this one in ActionResult is showing in TechEmpower. I
did a pass on all of the product code since the cache task actually
improves the readability of the code 😎
2016-04-06 16:06:45 -07:00
N. Taylor Mullen
3ebb14ee4b
Update Resource lookup keys for VSRC1 packages.
2016-04-06 11:43:09 -07:00
Sébastien Ros
efb8ef33e6
Fixing race in distributed cache tag helper
...
Fixes #4407
2016-04-06 09:42:24 -07:00
Pranav K
c66c408c15
DefaultAssemblyPartDiscoveryProvider.IsCandidateLibrary should not look at types in Mvc assemblies
...
Fixes #4363
2016-04-06 08:41:12 -07:00
David Fowler
4b348699c8
Fixed dependencies
...
Fix dependency on System.Runtime.Serialization.Xml
2016-04-05 23:28:53 -07:00
N. Taylor Mullen
ee80f5f84c
React to aspnet/Razor#621 .
2016-04-05 16:08:01 -07:00
Pranav K
7cb1dca467
JsonInputFormatter fails to use custom SerializerSettings
...
Fixes #4270
2016-04-05 10:19:49 -07:00