Commit Graph

40898 Commits

Author SHA1 Message Date
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
David Fowler 239906e943 No tabs 2015-05-11 21:03:28 -07:00
David Fowler 27376a7bb8 Add global.json with an sdk version for beta4 samples 2015-05-11 20:56:33 -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
Glen 2bb2d1484d Fix variable names in dnvminstall.ps1 2015-05-11 10:32:45 +02: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
Eilon Lipton e703a8c247 Merge pull request #580 from vkichline/patch-1
Update README.md
2015-05-10 09:03:48 -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
Doug Bunting 61b76fd99f Use `ClosedGenericMatcher.ExtractGenericInterface()` from Common repo
- added in aspnet/Common@aae8e6e

nits:
- reorder dependencies alphabetically
- avoid `GetGenericArguments()` extension method with `ExtractGenericInterface()` return value
 - use `GenericTypeArguments`
- usual trailing whitespace auto-removals
2015-05-08 20:23:06 -07:00
Harsh Gupta 583277cceb Adding tests for ActionParameters and TryUpdateModel 2015-05-08 19:11:03 -07:00
Ryan Nowak 8a476b56d8 Part 2 of fix for #2248 - Support 'override' of attribute routes on action
methods

This change applies the 'override' semantic to attribute routes on virtual
methods.

A method override can either inherit attribute routes from a base
definition, or can replace them. It's not possible to inherit routes and
also add to them.
2015-05-08 17:05:50 -07:00
Ryan Nowak 46db71cfce Part 1 of fix for #2248 - Ambiguity when inheriting attribute routes
The change here is to make an attribute route defined on a base class
inherited only if no other routes were defined 'closer' to the controller
class.

To put another way, attribute routes can either be inherited or
overridden, you can't inherit + add your own.
2015-05-08 17:05:45 -07:00
Barry Dorrans eaa7ca9e81 Adding validation regex timeout. 2015-05-08 14:33:45 -07:00
Ryan Nowak 2b4702728d Fix #1910 - Review and improve docs for 'Order' properties 2015-05-08 14:31:32 -07:00
Victor Hurdugaci 7839b80f04 Scripts to run tests remotely 2015-05-08 14:08:13 -07:00
Ryan Nowak 0f6b2331ce Fix #2378 - Fully expand models in ApiExplorer
This change dramatically simplifies the parameter discovery logic in
DefaultApiDescriptionProvider. Instead of surfacing POCO objects as
parameters, we now fully expand every model.

The rationale is that we want to show every key/value that can be set by
the user and not force consumers of ApiDescription to do that themselves.

Tests are cleaned up to match the new behavior.
2015-05-08 11:53:38 -07:00
Hao Kung f0098b6e1e No password = auto fail password checks
Rather than null ref boom...
2015-05-08 10:57:18 -07:00