Commit Graph

45021 Commits

Author SHA1 Message Date
Nick Craver 6874b87f13 C#6 Cleanup & Optimizations
The main intent is cleanup using C# 6 operators and normalization of
type aliases. While there are no intended functional changes here, it
does eliminate a few tight race conditions as a bonus (not a real-win
since this isn't thread-safe all over, simply noting).
2015-11-10 09:38:49 -08:00
David Fowler 466ca57d4b Merge pull request #471 from benaadams/lazy-init
Lazily initialize DefaultHttpContext
2015-11-10 07:20:52 -08:00
Ben Adams e5a3285090 Lazily initialize DefaultHttpContext
Lazily initialize sub objects of DefaultHttpContext

Resolves #470
2015-11-10 15:05:29 +00:00
Ben Adams c0f82765aa Move logging to new style 2015-11-10 10:43:51 +00:00
Kristian Hellang 7b35b2e1b9 Pass length to StringBuilder 2015-11-10 11:03:51 +01:00
Kristian Hellang 663c7917d0 Changed string.Format to StringBuilder 2015-11-10 10:31:56 +01:00
Ben Adams a2c4e3a654 Task.Run -> ThreadPool.QueueUserWorkItem
Task.Run eventually ends up being QueueUserWorkItem.
The returned task is ignored, so no added goodness.
Short running item.

Cut out the middleman
2015-11-10 07:28:17 +00:00
Doug Bunting 845b86963e Fix build break: React to aspnet/Hosting@660f1ca 2015-11-09 21:09:21 -08:00
Pawel Kadluczka 0bfc97e46f Fixing test so that it runs on CoreClr 2015-11-10 01:44:42 +00:00
Pavel Krymets 660f1cad10 Make hosting configuration consistent 2015-11-09 16:35:27 -08:00
Ryan Nowak ece6ecde45 Add buffer pooling to JsonResult 2015-11-09 15:43:33 -08:00
Damian Edwards e1a95c97e1 Merge pull request #342 from benaadams/completed-task
Completed Task opt
2015-11-09 12:51:21 -08:00
Kirthi Krishnamraju 3da2c35e3e fix #2819: Add more unit tests for ViewLocalizer and HtmlLocalizer 2015-11-09 10:54:56 -08:00
Chris R b04c4041f3 Update OIDC dependencies to 211090924. 2015-11-09 10:43:53 -08:00
Pranav K d17db92e19 Log messages to DiagnosticListener in addition to page instrumentation
Fixes #3281
2015-11-09 10:24:49 -08:00
Ryan Nowak 308dd109a0 Reduce allocations on Conneg hotpath 2015-11-09 09:16:30 -08:00
Ben Adams 278bd9c962 Completed Task opt 2015-11-09 04:32:08 +00:00
Doug Bunting cef4a66479 Another `System.RuntimeSerialization.Xml` version update
- #3493
- see also d4163b4

nit: sort properties
2015-11-07 15:34:07 -08:00
Doug Bunting dddc6a2ebb Remove quotes from `@addTagHelper` directive
- react to aspnet/Razor#561 fix: PR aspnet/Razor#591 and commit aspnet/Razor@0c95315
2015-11-07 12:27:32 -08:00
Eilon Lipton 6dfc95b582 Update to newer OIDC library 2015-11-07 12:04:16 -08:00
Pavel Krymets 7b248a7789 Make Compilation Abstractions naming consistent with Platform Abstractions 2015-11-06 16:18:45 -08:00
Pavel Krymets 737a8f3b1d Make Compilation Abstractions naming consistent with Platform Abstractions 2015-11-06 15:53:08 -08:00
Pavel Krymets 5bb737b6ad Make Compilation Abstractions naming consistent with Platform Abstractions 2015-11-06 15:10:11 -08:00
Pavel Krymets 740b51e0bc Make Compilation Abstractions naming consistent with Platform Abstractions 2015-11-06 15:08:07 -08:00
N. Taylor Mullen d564a4a96b React to aspnet/Razor#561.
- `TagHelper` directives no longer have quotes.
- Regenerated test output.
2015-11-06 12:31:55 -08:00
Ajay Bhargav Baaskaran 1927730f40 [Fixes #3426] Removed defensive copy in CompositeModelBinder and CompositeModelValidatorProvider 2015-11-06 12:21:08 -08:00
N. Taylor Mullen 0c95315500 Update tests to not require quotes for TH directives.
- Updated .cshtml files to not provide quotes for the various `TagHelper` directives.
- Updated `TagHelper` directive parsing tests. This also involved removing several tests that expected errors which no longer occur since we don't have to ensure quotes are balanced.
- Updated line mappings which significantly changed due to us no longer generating line pragmas at design time for `TagHelper` directives.

#561
2015-11-06 12:19:40 -08:00
N. Taylor Mullen 013f3a27af Remove quote requirement for `TagHelper` directives.
- `@addTagHelper`, `@removeTagHelper` and `@tagHelperPrefix` values are all written without quotes now.
- Updated the `ChunkGenerator`s to be in-line with other `ChunkGenerator`s in the system now that they don't have vastly different values than what their corresponding `Span`s have.
- Split `AddOrRemoveTagHelperChunkGenerator` into two smaller `ChunkGenerator`s to stay consistent with other generators.
- Removed error cases introduced by having quotes around directives.
- Updated code generation logic to not generate line pragmas (they should never have been generated to start with) and more specifically only map to the inner string that's generated. Without this change directive mappings would be offeset by a generated quote.

#561
2015-11-06 12:17:30 -08:00
N. Taylor Mullen decf882341 Update `LinkTagHelper`s `meta` tag to be w3c compliant.
- Prior to this change the `<meta ...>` generated had a name attribute. As an alternative we're using the `content` attribute in conjunction with the `name` attribute to ensure compliance.

#3449
2015-11-06 12:15:55 -08:00
Ajay Bhargav Baaskaran f7a211c095 Removed use of LINQ and added some optimizations in ValidationVisitor 2015-11-06 11:56:52 -08:00
N. Taylor Mullen bebd3dc9a0 Update test files to showcase block level Razor statements in attributes.
- Block level Razor statements in attributes used to not work. Added a few use cases to ensure that they're properly tested.

aspnet/Razor#594
2015-11-06 11:11:40 -08:00
Kiran Challa 5364468001 [Fixes #3177] Clean up logic for encoding in ViewResult and friends 2015-11-06 10:44:09 -08:00
Cesar Blum Silveira 216d3a0656 Fix some authentication unit tests failing on Linux and OS X. 2015-11-06 04:27:33 -08:00
Chris R a5a8614595 Merge branch 'release' into dev 2015-11-09 10:46:52 -08:00
SteveSandersonMS 717fb37034 Rename packages. Bump versions to -alpha6 2015-11-05 14:23:11 -08:00
SteveSandersonMS 54aad643c8 Decode Node's JSON response into arbitrary .NET type. Add VS stuff. 2015-11-05 22:05:43 +00:00
Cesar Blum Silveira 8bf2c72e69 Sign Microsoft.AspNet.Mvc. 2015-11-05 14:00:54 -08:00
Hao Kung 379f1928a4 Update doc comments 2015-11-05 13:22:27 -08:00
SteveSandersonMS 52953c5fe9 Fix working directory (e.g., for when running under IIS Express) 2015-11-05 12:25:29 -08:00
Stephen Halter 9d19eed88f Merge branch 'benaadams/memorypool2-allocate' into dev 2015-11-05 12:16:43 -08:00
Stephen Halter bb9f83186b Remove unused parameter from ListenerSecondary.ReadStartCallback 2015-11-05 12:09:50 -08:00
Cesar Blum Silveira 8a23efebf2 Merge branch 'release' into dev 2015-11-05 11:51:33 -08:00
Cesar Blum Silveira bcb02a06ef Update IdentityModel dependencies to strong named version. 2015-11-05 11:50:33 -08:00
SteveSandersonMS 46dc743177 Fix various path issues 2015-11-05 11:46:10 -08:00
Ricardo Peres a4c4e20d4e Restored Killed console message
Added Started console message
Captured possible exception from node process
2015-11-05 10:41:24 -08:00
SteveSandersonMS b5fb560c54 Require lodash (works around NPM dependency issue on Windows) 2015-11-05 10:22:39 -08:00
SteveSandersonMS 3e7dfa617a Update version of base package to -alpha4 2015-11-05 09:17:46 -08:00
Stephen Halter fff28990fe Ensure ListenerSecondary buffer isn't double freed or freed too early
- Call buf_init in StartAsync so we have access to a KestrelThread
2015-11-04 16:21:29 -08:00
N. Taylor Mullen 02d6b00d8f Generate `async` lambda for template attributes.
- Template attributes should be of type `Func<TextWriter, Task>`. We weren't generating an `async` lambda for attributes prior to this change resulting in a compilation failure when used at runtime and the inability to `@await` code (unless a user returns some sort of `Task`).
- Updated code generation files to reflect the new code generation behavior.

#594
2015-11-04 16:04:29 -08:00
Chris R f050e09283 Revert use of explicit converters that prevent APIs from returning null. 2015-11-04 16:03:36 -08:00