Commit Graph

37701 Commits

Author SHA1 Message Date
Mikael Mengistu b2bc4e6207 Added a (Uri,HttpMessageHandler) ctor for HttpConnection (#609) 2017-06-28 15:24:55 -07:00
Doug Bunting a90f4118ad Do not include type names in `ModelState` error messages
- #6076
- add resources and accessors specifically for the element / parameter cases
- avoid `metadata.GetDisplayName()` where possible
- fill in the `ValidationContext` that `ValidatorObjectAdapter` uses
  - e.g. `Validate_NestedComplexType_IValidatableObject_Invalid()` test fails without this

Possible future work:
- improve error message used for `ModelMetadata.IsRequired` elements and parameters
- use something besides the type for `ValidationContext.DisplayName` of elements and parameters

nits:
- trailing whitespace
- use more `out var`
2017-06-28 15:16:23 -07:00
Nate McMaster 812495f32d Remove SQLitePCLRaw workaround 2017-06-28 15:02:42 -07:00
BrennanConroy dc29e98032 Support Authorize attribute on EndPoints (#606) 2017-06-28 14:52:52 -07:00
Pranav K 8df3032540 Add support for specifying filters on page models.
Fixes #6334
2017-06-28 14:43:02 -07:00
Pavel Krymets 4f8e062cb5 Update IdentityModelActiveDirectoryVersion (#1292) 2017-06-28 14:41:39 -07:00
Kiran Challa fc56105d83 Fixed external login scenarios tests 2017-06-28 13:38:25 -07:00
Jass Bagga 61505b88a5 Remove use of GetTempFileName (#313) 2017-06-28 12:11:17 -07:00
Nate McMaster f3ed8129f3 Ensure Microsoft.AspNetCore.All is only compatible with netcoreapp2.0 (#180) 2017-06-28 10:21:55 -07:00
Chris Ross 163836fe1f #800 Re-enable API check (#878) 2017-06-28 10:16:54 -07:00
Ryan Nowak e70ce98213 Add docs about limitation of this option
This is all the work we're planning to do for #1361 for 2.0.0. Will
revisit this functionality in 2.1.0.
2017-06-28 09:16:39 -07:00
Henk Mollema 7166dfecd7 Add generic overloads on FilterCollection 2017-06-28 09:03:48 -07:00
Ryan Nowak 1886d53d89 Remove [BindProperty] on class
This isn't a good fit with consistency with controllers. Discussed with
@DamianEdwards and we agreed to remove this for now and bring it back in
the future if there's a real need for it.
2017-06-28 08:18:42 -07:00
David Fowler ccf6cd415e Remove dependency on new compiler (temporarily) 2017-06-27 22:49:11 -07:00
David Fowler ef0a46fcc4 Revert "Pin Roslyn compiler version (#597)"
This reverts commit cf7d2b4c40.
2017-06-27 22:43:13 -07:00
BrennanConroy cf7d2b4c40 Pin Roslyn compiler version (#597) 2017-06-27 22:22:46 -07:00
Pawel Kadluczka 59e032dbcb Adding negotiation to TS client 2017-06-27 18:55:18 -07:00
Mike Harder f28400f986 Temporarily remove TreatWarningsAsErrors to unblock build (#809) 2017-06-27 18:52:14 -07:00
Pawel Kadluczka f8d91b54d4 MsgPack end-to-end
Plugging in MsgPack protocol
Adding negotiation message to hub protocol
2017-06-27 18:40:55 -07:00
Javier Calvarro Nelson a2b856794e [Fixes #804] Re-enable tests disabled by cookie path changes 2017-06-27 18:30:04 -07:00
Pawel Kadluczka 71949129ea Enabling length prefixing, parsing multiple messages 2017-06-27 18:08:32 -07:00
Pawel Kadluczka 3504337918 Adding MsgPack HubProtocol 2017-06-27 17:35:00 -07:00
Nate McMaster 12ea28af5c React to API change in HttpAbstractions 2017-06-27 17:33:46 -07:00
Nate McMaster 64c6e11ce4 Change HttpResponseStreamWriter.DefaultBufferSize to 16K and remove it from public API surface 2017-06-27 17:31:54 -07:00
Nate McMaster 9b4be69e9d Do not enforce timeouts when the debugger is attached 2017-06-27 16:56:27 -07:00
Mike Harder 42f43e6cdf Upgrade TargetFramework in TestServer from 4.5 to 4.6.1 (#190)
* Addresses https://github.com/aspnet/WebSockets/issues/185
2017-06-27 15:49:27 -07:00
Pranav K 81fa36f029 Add a test that always publishes in Debug
Fixes #99

Also move some tests over to reduce unnecessary deployment
2017-06-27 15:37:19 -07:00
Ajay Bhargav Baaskaran 379d6d8dcd Added some missed doc comments 2017-06-27 15:02:17 -07:00
Ryan Brandenburg a408be3eb5 Remove NetStandard.Library.NETFramework 2017-06-27 14:00:47 -07:00
John Luo 5155456653 Handle graceful shutdown from ANCM 2017-06-27 13:20:21 -07:00
Hao Kung 80383606d3 AuthZ: Eliminate extra ToArray() 2017-06-27 10:31:42 -07:00
Nate McMaster bf1be9fb79 Restore the VSIX project with MSBuild instead of NuGet.exe (#1471)
* Restore the VSIX project with MSBuild instead of NuGet.exe
* Upgrade AppVeyor image to VS Preview
2017-06-27 10:28:23 -07:00
Mikael Mengistu 13ef35fa79 Changed the handlers to be Func<object[], Task> (#578) 2017-06-27 10:14:58 -07:00
BrennanConroy e36da30072 Ignore failed send after close (WebSockets) (#593) 2017-06-27 10:01:45 -07:00
Pranav K 9370ffce3c Updating Moq to 4.7.49 2017-06-27 09:45:19 -07:00
Pranav K 9acfc8d221 Watch _ViewImports outside the pages root for changes
Fixes #6428
2017-06-27 09:30:07 -07:00
Pranav K d278d6eedf Updating Moq to 4.7.49 2017-06-27 09:04:45 -07:00
Pranav K d1813a7cd7 Normalize paths returned by view location expanders
Fixes #6448
2017-06-27 08:48:07 -07:00
N. Taylor Mullen c67e790b3b Update inject directive to utilize DirectiveUsage.
- The `@inject` directive must now occur prior to any markup or code due to its `DirectiveUsage.FileScopedMultipleOccurring` usage.

#1377
2017-06-26 20:29:06 -07:00
N. Taylor Mullen c2c95ec175 Add file scoped multiple occurring extensible directives.
- Updated existing singly occurring tests that verified that the directives must occur prior to any content to be theories that tested the joint "file scoped" behavior of the usage.
- Added tests that validate `FileScopedMultipleOccurring` can have duplicate directives without erroring.

#1377
2017-06-26 20:29:06 -07:00
Nate McMaster 584b36318e Workaround issue caused by importing Internal.AspNetCore.Sdk into KoreBuild (#178) 2017-06-26 19:07:36 -07:00
Ryan Nowak 3536cf5aad Fix #5183 - update docs of CreateWriter 2017-06-26 18:59:36 -07:00
Ryan Nowak 0ad9c7d4eb Making Pages Binding Consistent
This changeset reckonciles the binding work we did for pages with
controllers.

A quick summary:
- Moves [BindProperty] to the MVC namespace (#6401)
- Makes [FromRoute] and friends behave consistently (#6402)
- Makes [BindProperty] work with controllers (untracked)
2017-06-26 18:11:44 -07:00
Ajay Bhargav Baaskaran d73ecf8b36 Suppress warnings for auto generated code 2017-06-26 17:35:11 -07:00
N. Taylor Mullen 5f2c00bc80 Add doc comments for `DirectiveUsage`. 2017-06-26 17:08:13 -07:00
N. Taylor Mullen 09ac126ecf Make single line single file scoped directives automatically import.
- Added an inner pass inside of the intermediate lowering phase to determine which directives get flowed to the final document. There were many ways to accomplish this but in order to keep the last wins mechanic for non-auto imported directives I had to let the directives get created and then removed based on if they were inherited.
- Added error case if a user attempts to import a block directive with a `FileScopedSinglyOccurring` directive usage.
- Added test cases that validate directives are properly inherited at the intermediate lowering phase.
- Updated a few tests that had incorrect assumptions.
- Left the default directive passes alone in regards to determining the "imported" directive to enable users to add their own model, inherits, etc. directives that take precedence.
- Normalized the passes in the intermediate lowering phase to handle directives identically (we don't conditionally lower anymore).

#1376
2017-06-26 16:36:54 -07:00
Hao Kung cf09af52eb Remove duplicate type 2017-06-26 16:32:51 -07:00
Stephen Halter 3fcd909d90 Temporarily disable systemd activation test (#1918) 2017-06-26 15:51:09 -07:00
Hao Kung 4e004c22ba React to options 2017-06-26 15:49:23 -07:00
Jass Bagga f4a86f5511 Add DiagnosticSource to RazorView (#6386)
Addresses #6222
2017-06-26 15:35:31 -07:00