Commit Graph

39583 Commits

Author SHA1 Message Date
Pavel Krymets b8b0d3894c Try disabling running tests in parallel to fix DataProtectionProviderTests.System_UsesProvidedDirectoryAndCertificate failures 2016-06-09 15:54:43 -07:00
N. Taylor Mullen 6e4f15bad4 Remove unused/unpurposeful classes.
- Several classes are legacy and left over from many changes in the Razor code base. This changeset removes those classes.
- Also moved several corresponding test cases

#778
2016-06-09 15:51:43 -07:00
Ryan Brandenburg 5339a3e0ce Add ExceptionHandled to ExceptionContext (#4825) 2016-06-09 15:22:11 -07:00
Pranav K 8c8fd6446b Use regular PDBs on full desktop when possible
Add a test to verify exceptions thrown from views is pretty printed by diagnostics middleware

Fixes https://github.com/aspnet/Diagnostics/issues/293
Fixes #4737
2016-06-09 14:59:38 -07:00
Ryan Nowak a8142b8858 Fix #4614 - update IModelBinder docs 2016-06-09 14:21:07 -07:00
Pavel Krymets b2c7469f17 Fix Collection was modified exception in test 2016-06-09 12:44:28 -07:00
Kiran Challa f1982bd987 Suppress default status code response type in api descriptions when explicit response types have been provided
[Fixes #4823] How to override the default (200) status code with ProducesResponseType
2016-06-09 12:07:52 -07:00
Doug Bunting 62803d5979 Serialize JSON using camel case by default
- #4283
- update `JsonSerializerSettingsProvider` to choose the `CamelCaseNamingStrategy`
2016-06-09 11:58:23 -07:00
Ryan Nowak 31ec88526a Fix #4801 Rename ValidationExcludeFilter
'ValidationExcludeFilter' -> 'SuppressChildValidationMetadataProvider'

Also moved to .ModelBinding for improved discoverability. There aren't
many reasons user code would have a using for .Validation.
2016-06-09 10:51:31 -07:00
Ryan Nowak baf0b6a5c7 Fix #4803 - Move some types internal
Moves IControllerArgumentBinder and IControllerPropertyActivator into
.Internal. Also renames ControllerArgumentBinder ->
DefaultControllerArgumentBinder for consistency with other controller
extensibility types.

We don't think these are 100% baked for our long term maintenance of the
product, and want to reserve the ability to make changes in the future.
2016-06-09 09:36:15 -07:00
jacalvar 22232bc1bf Fix incorrect import 2016-06-09 01:14:08 -07:00
jacalvar eb726021df Remove unncessary usings 2016-06-09 00:56:43 -07:00
jacalvar 5cf300db6c Remove unncessary usings 2016-06-09 00:54:14 -07:00
jacalvar e2fd776e5b Remove unncessary usings 2016-06-09 00:49:43 -07:00
jacalvar e1495f5f32 Remove unncessary usings 2016-06-09 00:48:37 -07:00
jacalvar c74a210386 Remove unncessary usings 2016-06-09 00:43:45 -07:00
jacalvar 0c2189e473 Remove unncessary imports 2016-06-09 00:35:44 -07:00
Stephen Halter b4632c273e Handle exceptions thrown from Connection.Start in ListenerSecondary
- This is already done for primary listeners
2016-06-08 17:17:49 -07:00
Pranav K ad9e22d42a Update to preview2 2016-06-08 16:52:27 -07:00
jacalvar 68c06c61e7 Remove unncessary imports 2016-06-08 15:19:18 -07:00
jacalvar 855d5381b1 Remove unncessary imports 2016-06-08 15:09:06 -07:00
jacalvar 8dbdc0294f Remove unncessary imports 2016-06-08 15:07:48 -07:00
jacalvar 4d77dce803 Remove unncessary imports 2016-06-08 15:07:03 -07:00
jacalvar b1af033529 Remove unncessary imports 2016-06-08 15:04:56 -07:00
jacalvar a877ec1783 Remove unncessary imports 2016-06-08 15:04:06 -07:00
jacalvar cdb16d656c Remove unncessary imports 2016-06-08 15:00:57 -07:00
jacalvar 525b9251df Remove unnecesary imports 2016-06-08 14:58:21 -07:00
BrennanConroy 32cade2542 Remove PlatformAbstractions 2016-06-08 14:40:20 -07:00
jacalvar 15454ae254 Remove unncessary imports 2016-06-08 13:02:26 -07:00
jacalvar dc1c9412ab Remove unncessary imports 2016-06-08 13:00:29 -07:00
jacalvar 3e8990530c Remove unncessary imports 2016-06-08 12:49:34 -07:00
jacalvar d8c1ac7c06 Remove unncessary imports 2016-06-08 12:47:43 -07:00
Doug Bunting aecfe778ee Improve handling of custom `ValidationAttribute`s and their `ValidationResult`s
- #3595 sub-items 2 through 4
- handle an indexer name in `ValidationResult.MemberNames`
 - aligns `ModelNames.CreatePropertyModelName()` with `TemplateInfo.GetFullHtmlFieldName()`
- handle multiple elements in `ValidationResult.MemberNames`
 - later elements previously ignored
- set `ValidationContext.MemberName` to `null` when no property name is available
 - using type name for a member name was just wrong
2016-06-08 12:05:01 -07:00
John Luo db4b0af98b Read environment variables by default #784 2016-06-08 10:42:00 -07:00
Doug Bunting 14f68b6168 Merge pull request #4623 from tuespetre/conneg
Alter content negotiation algorithm
2016-06-08 09:58:36 -07:00
SteveSandersonMS 44c8b9985b Add language type annotations and fix links in NodeServices readme 2016-06-08 16:59:02 +01:00
SteveSandersonMS f0ec89bbd9 Add NodeServices docs 2016-06-08 16:53:21 +01:00
Pranav K bfa281e24e Use aspnetexternal feed instead of CI share 2016-06-07 17:14:02 -07:00
Stephen Halter c1dadbd723 Make Bad Request tests more reliable
- Avoid calling write again after the request is already rejected
- Don't try to close a socket from the client if we already expect the server
  to forcefully close the socket
2016-06-07 16:13:29 -07:00
Derek Gray 5a3875ea72 Alter content negotiation algorithm so that it can be configured (via
MvcOptions) to always respect an explicit Accept header. Fixes #4612.
2016-06-07 16:12:36 -05:00
BrennanConroy e41b455141 Update 2016-06-07 11:35:40 -07:00
BrennanConroy 7808a47ccc Use Sources RuntimeEnvironment 2016-06-07 10:01:27 -07:00
SteveSandersonMS 7af64a8944 Tidy up image resizing example 2016-06-07 17:46:42 +01:00
SteveSandersonMS e58a4e4015 Tidy up image credits 2016-06-07 17:16:27 +01:00
SteveSandersonMS b19d0dff92 Support streamed response from SocketNodeInstance 2016-06-07 17:16:01 +01:00
SteveSandersonMS 967edd2b2a Support streamed response from HttpNodeInstance 2016-06-07 16:49:40 +01:00
Ryan Nowak 2e2784aa3d [Design] Split up MvcRouteHandler
This change splits up the conventional routing path from the attribute
routing path *inside* routing, instead of inside `MvcRouteHandler`. Each
attribute route group now gets its own instance of
`MvcAttributeRouteHandler` which just knows about the actions it can
reach.

This removes the concept of a route-group-token and removes the lookup
table entirely for attribute routing. This also means that the
`DefaultHandler` on `IRouteBuilder` will not be used for attribute routes,
which we are OK with for 1.0.0.

The action selector's functionality is now split into two methods. We
think this is OK for 1.0.0 because any customization of `IActionSelector`
up to now had to implement virtually the same policy as ours in order to
work with attribute routing. It should now be possible to customize the
selector in a meaningful way without interfering with attribute routing.
2016-06-07 08:12:47 -07:00
SteveSandersonMS 3440aa4344 Switch image resizing example from 'jimp' to 'sharp' because it's far faster 2016-06-07 16:06:15 +01:00
SteveSandersonMS 3e82d94f1c Add image resizing example. Currently used base64 encoded data transfer and the 'jimp' module, neither of which are fast. Will replace these shortly. 2016-06-07 15:55:06 +01:00
Pranav K 57b8e1cae8 Revert "React to Hosting TFM change"
This reverts commit 96d37a04e6.
2016-06-07 06:39:57 -07:00