Commit Graph

27752 Commits

Author SHA1 Message Date
Eilon Lipton 384c6161be Update Home master -> Home dev 2015-05-12 11:48:54 -07:00
Eilon Lipton 75474fe9fa Update Home master -> Home dev 2015-05-12 11:48:43 -07:00
Eilon Lipton 8d2bc0d121 Update Home master -> Home dev 2015-05-12 11:48:23 -07:00
Eilon Lipton 72e88864af Update Home master -> Home dev 2015-05-12 11:48:17 -07:00
Eilon Lipton e1aa94bf39 Update Home master -> Home dev 2015-05-12 11:47:36 -07:00
Eilon Lipton a7b261e596 Update Home master -> Home dev 2015-05-12 11:47:30 -07:00
Eilon Lipton c1e0b2819c Update Home master -> Home dev 2015-05-12 11:47:18 -07:00
Eilon Lipton 241a1040ab Update Home master -> Home dev 2015-05-12 11:47:05 -07:00
Eilon Lipton 54fbf51894 Update Home master -> Home dev 2015-05-12 11:46:51 -07:00
Chris R 57594803fc React to IHttpRequestLifetimeFeature change. 2015-05-12 11:34:21 -07:00
Eilon Lipton ac230a78c1 Update Home master -> Home dev 2015-05-12 11:26:36 -07:00
Henk Mollema 8b1f8b9748 Added new ValidationSummary overloads to sample
Overview now shows every possible overload.

#1743
2015-05-12 20:20:34 +02:00
Ryan Nowak 4939181075 Fix #2528 - Revert formatter behavior for [Required]
This change removes the support in the DCS formatter to issue an error
message when [Required] is used on a value type.
2015-05-12 11:17:31 -07:00
Pranav K 13a3c0b931 Moving System.Security.Cryptography.Hashing.Algorithms to dnxcore50 node
to unbreak failing MusicStore dnu deploy.
2015-05-12 11:15:26 -07:00
Ryan Nowak 39fe063aee Fix #2330 - Reimagine *FormatterContext
This change simplifies InputFormatterContext/OutputFormatterContext by
swapping ActionContext for HttpContext.

This change is important especially for InputFormatterContext as it
decouples ModelState from ActionContext - allowing us to fix a
related bug where the _wrong_ ModelState can be passed in for a
TryUpdateModel operation.
2015-05-12 11:05:56 -07:00
Chris R dce1d0e88f #272 Make more properties settable (Items, RequestAborted, IsHttps, Query, Cookies). 2015-05-12 11:02:58 -07:00
Chris R f4d18f5a5d Use wildcard dependency version. 2015-05-12 06:39:15 -07:00
Doug Bunting 294fb5c3cd Quick fix: Missed `null` checks in 7dc0508 2015-05-11 22:12:28 -07:00
Glenn Condron c390d47317 Add IsDevelopment and IsProduction extension methods 2015-05-11 18:29:27 -07:00
damianedwards 21dc2909a1 Made IRequestCultureStrategy async to support things like user profile lookup 2015-05-11 18:29:03 -07:00
damianedwards d22adcbef0 Remove RequestCulture caching as perf testing shows it has no benefit 2015-05-11 18:05:36 -07:00
David Fowler 5f12c3b1e3 Made build.sh executable 2015-05-11 17:55:59 -07:00
David Fowler e19289f7ac Merge pull request #255 from Tragetaschen/hosting-keep-alive
Third way of making configurable how hosting is kept alive
2015-05-11 17:52:46 -07:00
Doug Bunting fcf7b15c64 Remove `FromBodyOnProperty_RequiredOnValueTypeSubProperty_AddsModelStateError`
- this integration test depends on the old `[Required]` special case
- #2388 explicitly removes that bahaviour so the test goes with it
2015-05-11 17:18:52 -07:00
damianedwards bcabbbc9b8 Fix Travis by pinning to earlier Mono 2015-05-11 17:14:57 -07:00
James Newton-King de630754bf SerializerSettings refactor
Add SerializerSettings to MvcOptions and pass those options to the JsonInputFormatter and JsonOutputFormatter.
Remove custom contract resolver.

PR feedback
Pass JsonSerializerSettings to JsonPatchInputFormatter

PR feedback
Make DI JsonOutputFormatter formatter use MvcOptions SerializerSettings

Fix JsonPatchInputFormatter using null ContractResolver

Fix tests
2015-05-11 16:43:17 -07:00
Victor Hurdugaci aa2d38d6c1 Better error handling 2015-05-11 16:31:44 -07:00
Doug Bunting 3fbead0ce8 Get builds working better within VS (temporary fix?); disable pre-compilation
- remove `RazorPreCompilation.cs` files from all but the PrecompilationWebSite
- related to #2498 but not addressing that issue since pre-compilation is what that site is about
2015-05-11 16:14:04 -07:00
James Newton-King ab4cd5c4c4 Add JsonHelper for serializing JSON in views
- remove NotNull from JsonHelper Serialize
2015-05-11 16:01:08 -07:00
damianedwards 306d71ef43 Moved some things around:
- Options are now given to strategies
- Options only contains properties relevant to the middleware itself. Strategies can have their own properties, e.g. AcceptLanguageHeaderRequestCultureStrategy limits the number of values in the header to try
- Strategies now derive from common base class and validate against the options, e.g. app specified supported cultures
- Renamed RequestLocalizationMiddlewareOptions to RequestLocalizationOptions
- Fixed missing doc comments
2015-05-11 15:28:50 -07:00
Kai Ruhnau 95b1997c14 Simplify Hosting's shutdown handling.
Don't require a TTY on Unix.
2015-05-12 00:10:24 +02:00
Hao Kung 1354d66fb6 Ensure ConfigureServices is only called once 2015-05-11 15:08:40 -07:00
Smit Patel 499f62c596 React to EF Changes: Remove Usage of BasicModelBuilder 2015-05-11 14:59:38 -07:00
Victor Hurdugaci 0593c0def7 Add the exit code to the remote result 2015-05-11 14:34:05 -07:00
Kiran Challa 40794fcc33 Custom stream writer which avoids writing the BOM and does not flush or close the stream. 2015-05-11 13:27:05 -07:00
damianedwards 9834a27728 Culture names are now limited to a known list:
- Added tool to generate a set of known culture names from the OS/Fx
- CultureInfoCache is now limited to only caching/returning cultures from the known list
- #6
2015-05-11 12:58:18 -07:00
Ajay Bhargav Baaskaran d6012d4297 [Fixes #2506] Added overload to Controller.Json to accept JsonSerializerSettings 2015-05-11 12:36:45 -07:00
Pranav K 131096ff61 Adding relevant unit tests for MvcRazorCodeParser property name trimming 2015-05-11 12:20:49 -07:00
David Paquette ab4d2eec31 ImageTagHelper
An ImageTagHelper that supports cache busting by appending a file
version hash to the image src attribute
[Resolves #2249]

Code cleanup
2015-05-11 13:41:10 -05:00
Chris R 9b5a476622 #4 Add logging to debug flaky tests. 2015-05-11 09:41:25 -07:00
Chris R 7dd670e192 #4 Disable parallel test execution. 2015-05-11 09:19:52 -07:00
Chris R eaecffb9d7 Enable IIS connection: close test. 2015-05-11 09:08:56 -07:00
Henk Mollema 89b5f5b1aa Utilize nameof operator 2015-05-11 17:37:54 +02:00
Pranav K a591e53dc9 Removing unused TypeHelper method 2015-05-11 06:15:35 -07:00
Doug Bunting 7dc0508c03 Add `[HtmlAttributeName(..., DictionaryAttributePrefix="prefix")]` part 1
- related to #89 because we need more descriptor comparers in more places
- separate `TagHelperAttributeDescriptorComparer` and `TypeBasedTagHelperDescriptorComparer`
 - encourages reuse and most will soon be used in multiple classes
- add `null` checks to `EquivalenceComparer`
 - also give parameters better names

nits:
- use `<inheritdoc/>` in `TagHelperDescriptorComparer`
 - also give it an explicit constructor
- make product comparers easier to subclass
 - base test `CaseSensitiveTagHelperAttributeDescriptorComparer` on product code
2015-05-10 22:15:29 -07:00
David Fowler 12d3f48bfd Merge pull request #261 from Tragetaschen/started-event
Add an ApplicationStarted event
2015-05-10 02:05:48 -07:00
Matthew Bonner 648f00c03d MINOR: Removed additional space from indentation of ReferenceAssemblies HashSet. 2015-05-09 22:00:46 +01:00
Pranav K 320507604a Removing superfluous types and methods from Common. 2015-05-09 08:04:28 -07:00
Kai Ruhnau 4de328069a Add an ApplicationStarted event 2015-05-09 08:52:53 +02:00
Eilon Lipton 96a0b3e459 Merge pull request #241 from hishamco/dev
Using [NotNull] and  'nameof' operator
2015-05-08 22:03:14 -07:00