Commit Graph

44788 Commits

Author SHA1 Message Date
Nate McMaster 1a94903930 Execute tests for net451 and/or dnx451 2016-02-17 15:49:22 -08:00
Ajay Bhargav Baaskaran 80ea4b9035 Enabled xml doc generation 2016-02-17 15:40:13 -08:00
Ajay Bhargav Baaskaran 55f1d41e08 Updated missed doc comment 2016-02-17 14:45:57 -08:00
Chris R 5061848e9e Add IHttpConnectionFeature.ConnectionId. 2016-02-17 13:28:02 -08:00
Ajay Bhargav Baaskaran 8eb737a459 Enabled xml doc generation 2016-02-17 12:27:23 -08:00
Ajay Bhargav Baaskaran c2f4bd0be5 Enabled xml doc generation 2016-02-17 12:12:44 -08:00
ryanbrandenburg a8dbf6a255 * Add logging for other IAntiforgery public methods 2016-02-17 11:57:50 -08:00
Doug Bunting 5d8231ee0d `OwinExtensions.UseBuilder()` should not leave `ApplicationServices` or `RequestServices` `null`
Also correct tests to avoid warnings and to ensure scenarios are actually tested
- tests previously went `async` without waiting for completion

nit: add parameter `null` checks
2016-02-17 11:31:02 -08:00
Ryan Nowak b557ca55d9 Fix behavior of StartsWithPrefix
This undoes a behavior change introduced in
7b18d1d3f1.

The intent was to have ClearValidationState do the right thing for a case
where a collection was bound to the empty prefix, and then used again with
TryUpdateModel.

This change was implemented by saying that a key like "[0].Foo" is a match
for the prefix of "Foo". This isn't really right, and it's only
interesting for the ClearValidationState case.

The problem is that we don't know what the keys look like for a
collection. We can assume that they start with [0] but that's not really a
guarantee, it's a guess.

This change fixes the behavior of StartsWithModel, and move the
responsibility for this case back into ClearValidationState.

This change also removes the call to ClearValidationState from
TryUpdateModel. If you need this behavior, then call ClearValidationState
manually. Trying to bind and then re-bind a model object isn't really what
we intend.
2016-02-17 11:16:16 -08:00
Ajay Bhargav Baaskaran 54fea50483 Enabled xml doc generation 2016-02-17 10:21:17 -08:00
Ajay Bhargav Baaskaran fd6d28d9eb Make AddControllersAsServices not overwrite existing IControllerTypeProvider 2016-02-17 10:14:31 -08:00
Ben Adams ffa8f3f092 Helper function for test socket creation 2016-02-17 03:59:59 +00:00
John Luo 6aa848dd93 Convert TFM to net451 to allow custom test discovery 2016-02-16 17:59:17 -08:00
jacalvar 910f0139f9 [Fixes #4050] Throw an exception on CanRead/Write and GetSupportedContentTypes when the list of media types is empty 2016-02-16 17:16:16 -08:00
Victor Hurdugaci 59cb4fe65a dnx-watch -> dotnet-watch 2016-02-16 15:33:20 -08:00
Kiran Challa b4438c0559 Enable publishing to IIS 2016-02-16 13:52:21 -08:00
Ajay Bhargav Baaskaran 220479c1a1 [Fixes #30] Updated UID generation in DefaultClaimUidExtractor 2016-02-16 10:14:52 -08:00
Kiran Challa 7337f50112 [Fixes #3774] DataAnnotation validation ignored 2016-02-16 08:52:50 -08:00
hexelium a0164b005d (#346) Fixed case when razor fails to recognize escape shortcut when the first character in a text is `:`. For example @::sometext. 2016-02-15 20:51:43 +02:00
David Fowler 0633690715 Simplify resolve path check 2016-02-13 22:47:07 -08:00
N. Taylor Mullen 3b4b3b8ca2 Remove System.Runtime dependency.
- This dependency is now pulled in transitively.
- It was temporarily re-added due to a DNX bug.
2016-02-13 22:05:25 -08:00
David Fowler 2dc353e219 Fixed 1300 errors reported in VS on build 2016-02-13 21:20:20 -08:00
Ben Adams 020e0b9dc5 Enable TCP Loopback Fast Path (Windows)
Enable TCP Loopback Fast Path; where the IP layer is skipped, for lower
latency for localhost comms, like HttpPlatformHandler+IIS reverse proxy

http://blogs.technet.com/b/wincat/archive/2012/12/05/fast-tcp-loopback-performance-and-low-latency-with-windows-server-2012-tcp-loopback-fast-path.aspx

Have to do it this way due to open issue in libuv

Loopback fast path: libuv/libuv#489

Related: "Confirm HttpPlatformHandler uses Fast TCP Loopback"
aspnet/IISIntegration#29
2016-02-14 04:44:20 +00:00
Ben Adams b473402cb1 Fast header clear 2016-02-13 11:49:00 +00:00
Ben Adams f8aa1a676a Pass ServerInformation as property of ServiceContext 2016-02-13 05:51:54 +00:00
Ben Adams 460dbb15c2 RO Headers & rationalise exceptions 2016-02-13 03:35:26 +00:00
Ben Adams e533d5da89 Fast path Consume when already complete 2016-02-13 01:52:16 +00:00
Ben Adams c293bbbd1a Reuse headers to prevent values moving to higher GC gens 2016-02-13 01:16:17 +00:00
SteveSandersonMS 30cb9d3fa3 Stock WebApplicationBasic output from "yo aspnet" 2016-02-12 17:16:02 -08:00
jacalvar ac23e5aec6 [Fixes #4013] Added support for areas in 'a' and 'form' tag helpers 2016-02-12 17:08:17 -08:00
Ryan Nowak ac107b5371 Make IsRequestValid check HTTP method
This code was popping up everywhere this method is called. Seems bad to
duplicate it. Really what the caller wants to know is 'is the request
valid or a potential CSRF exploit?'. This gets the API closer to that.
2016-02-12 16:52:25 -08:00
Pranav K 9dab5ae5ff Change project.json to let CI manage build quality 2016-02-12 15:07:54 -08:00
Kiran Challa de7475cc33 Updated per KB 3137909. 2016-02-12 14:47:50 -08:00
SteveSandersonMS 8a412a5af3 Implement simple Webpack setup 2016-02-12 14:22:37 -08:00
SteveSandersonMS 778e6402d5 Roughly empty starting point for Webpack demo 2016-02-12 14:22:37 -08:00
Brennan 378cc97bd0 Remove Mvc CodeGenerator 2016-02-12 13:27:04 -08:00
jacalvar 65858b8d8b [Fixes #4051] Split OutputFormatter into OutputFormatter and TextOutputFormatter 2016-02-12 12:04:18 -08:00
Kiran Challa 0da12619cd [Fixes #589] Remove TestMiddleware 2016-02-12 11:23:59 -08:00
Hao Kung 06f4c306b7 Remove redundant setters for CookieAuthSchemes 2016-02-12 10:57:52 -08:00
jacalvar 63354e25a8 Make GetSupportedContentTypes on InputFormatter vitual 2016-02-12 10:57:36 -08:00
Stephen Halter f89c959f4f Merge branch 'benaadams/no-spin' into dev 2016-02-12 10:54:48 -08:00
Pranav K 9b245c032b Use build versions in project.json 2016-02-12 10:37:08 -08:00
Ben Adams a33369acd8 Fast-path PrefixEnumerator 2016-02-12 09:06:14 -08:00
Kiran Challa cf6d7f9a56 Enabled tests to run in dotnet xunit runner 2016-02-11 17:19:13 -08:00
moozzyk fe75aa47db Enabling Kestrel on OSx Mono when not running with dnx
Before moving to dotnet dnx on OSx on Mono would load libuv.dll into the process and Kestrel would use DllImport with __Internal to import functions from the native libraries loaded into the Mono process. With the move to dotnet nothing is preloading libuv to the process so Kestrel must no longer use DllImports with __Internal but the regular ones. Mono seems to load native libraries from the app folder so, the user won't have to install libuv on their own since libuv.dylib is published with the app.
2016-02-11 16:05:32 -08:00
Brennan 314bc21413 Add missing framework assemblies 2016-02-11 13:29:58 -08:00
Kristian Hellang cb09ffccce Changed SaveAs[Async](string) to CopyTo[Async](Stream) 2016-02-11 12:11:42 -08:00
N. Taylor Mullen 6bad1bba5b Enable Razor templates inside of sections.
- Changed the variable used to render templates (`HelperResult`s) so they can be used inside of sections.
- Updated section test file to showcase nested scenario. Also Regenerated existing test files.

#572
2016-02-11 12:01:34 -08:00
Pranav K 6a7289d52e Continue deleting ni files on Linux until a new CLI is available 2016-02-11 11:07:11 -08:00
Pranav K 3fcd6f94ee Keep cli native images 2016-02-11 11:01:32 -08:00