Commit Graph

44788 Commits

Author SHA1 Message Date
Chris R 0f01399955 #123 Default headers to UTF8 2016-01-08 12:06:50 -08:00
Ajay Bhargav Baaskaran 0bb772a815 [Fixes #3755] Added logging for view compilation 2016-01-08 11:58:09 -08:00
John Luo c68f742dd0 Disabling hanging FlushPoint test 2016-01-08 11:56:31 -08:00
Cesar Blum Silveira 2ce28d8f13 Verify OnComplete is called when OnStarting isn't (#470). 2016-01-08 11:50:59 -08:00
Stephen Halter b63dd40efb Protect SocketInput against concurrent consumption 2016-01-08 11:14:15 -08:00
Stephen Halter f3a39d98da Merge branch 'benaadams/socket-input' into dev 2016-01-08 11:12:43 -08:00
Ajay Bhargav Baaskaran bf1fcf6b56 Return BadRequest response when antiforgery token validation fails 2016-01-08 10:35:00 -08:00
moozzyk ae61490092 publish-iis command 2016-01-08 10:29:40 -08:00
John Luo 8afe28c05d Updating tests to add options to services 2016-01-07 23:54:55 -08:00
David Fowler 6bc8384ea9 Small style cleanup 2016-01-07 20:52:54 -08:00
David Fowler ca8136b73c Compile middleware invoke method when extra args are provided
- Improves the performance when accessing scoped services in middleware
2016-01-07 20:39:04 -08:00
John Luo 982de18371 Updating tests to add options to services 2016-01-07 19:43:35 -08:00
John Luo c0800bea9f Remove redundant AddOptions which is now a default hosting service 2016-01-07 18:46:10 -08:00
John Luo 5c2bdc8923 Updating to new options pattern 2016-01-07 18:26:38 -08:00
John Luo c742390a3c Remove redundant AddOptions which is now a default hosting service 2016-01-07 17:45:36 -08:00
John Luo 5bf58a08e9 Remove redundant AddOptions which is now a default hosting service 2016-01-07 17:26:50 -08:00
John Luo cd813844a0 Updating to new options pattern 2016-01-07 16:37:39 -08:00
John Luo 2c7f0ff35d Remove IncludedConfigurationProvider since it's been added to Configuration repo 2016-01-07 15:19:41 -08:00
Ajay Bhargav Baaskaran 80fa2908bd Throwing custom AntiforgeryException for token validation failure scenarios 2016-01-07 15:12:55 -08:00
Ryan Nowak c304984a8d Fix #3501 - Issues with Flush
Calling Flush[Async]() on the writer will NOT flush the stream.
Calling Flush[Async]() in Razor will flush both the writer and the stream.

Our normal flow will be to flush the writer, but not the stream. This
avoids chunking, but allows us to do a WriteAsync on the stream as part of
the call to FlushAsync. This is done to avoid a synchronous write due to
Dispose calling Flush on the writer, which needs to call Write on the
stream.

See issue for extensive background.
2016-01-07 14:52:22 -08:00
Victor Hurdugaci e7bf0e71bb Build with dotnet 2016-01-07 14:22:25 -08:00
Hao Kung 167bb54c8d Make IHttpContextAccessor Optional 2016-01-07 14:21:31 -08:00
John Luo 07785c9ae0 Reacting to new hosting API 2016-01-07 13:55:41 -08:00
John Luo d1a0edb87e Updating to new options pattern 2016-01-07 13:45:40 -08:00
Ryan Nowak 676bde29b9 Make Begin[Route]Form include antiforgery 2016-01-07 13:24:01 -08:00
John Luo b826491234 Reacting to new hosting API 2016-01-07 11:54:27 -08:00
N. Taylor Mullen 2b83dbb52e Make `ExpressionRewriter` more resilient to unconvertible types.
#3825
2016-01-07 11:41:14 -08:00
Pranav K dc878f2777 Capture exceptions thrown during compilation
Fixes #3870
2016-01-07 11:21:45 -08:00
Ryan Nowak ff00c07b85 Rename ActionDescriptorsCollection
ActionDescriptorsCollection -> ActionDescriptorCollection
2016-01-07 10:26:12 -08:00
ryanbrandenburg b942e96216 * Fix LoggingExtension Naming 2016-01-07 10:03:07 -08:00
Pranav K 9168cd1f37 Optimize allocations in Script/Link TagHelpers
Fixes #3618
2016-01-07 09:56:24 -08:00
Victor Hurdugaci d113f7edc9 Build with dotnet 2016-01-07 09:49:14 -08:00
David Fowler 294e16732f Move default config to Hosting.Abstractions 2016-01-07 07:49:29 -08:00
SteveSandersonMS f44b84f2ab Bump SpaServices version to alpha7-1 to avoid conflict on NuGet 2016-01-07 11:51:55 +00:00
David Fowler e72924796e More hosting API changes
- Added IWebApplicationBuilder and moved it to Hosting.Abstractions as a
target for others to extend the web application builder.
- Made methods extension methods where possible
- Added UseUrls
2016-01-06 21:09:33 -08:00
N. Taylor Mullen 605dceea02 Change string rendering to be chunked.
- Roslyn currently has an issue where too large of strings result in out of memory exceptions at compile time. To combat this I broke down literal strings into 1024 length pieces each resulting in their own `WriteLiteral`/`WriteLiteralTo` calls. The 1024 number corresponds directly with MVCs response string buffer.
- Added tests to validate large string rendering.

#614
2016-01-06 16:21:32 -08:00
Victor Hurdugaci dba3e55c0a Update the templates 2016-01-06 16:02:05 -08:00
Henk Mollema b4b5f07a08 Detect mono using PlatformAbstractions 2016-01-07 00:48:36 +01:00
Henk Mollema db11368d26 Remove StandardsPoliceCompileModule usage
Just a test - this seems to fix the build
2016-01-07 00:35:51 +01:00
Henk Mollema e81c5adce2 Change #ifdefs 2016-01-07 00:35:50 +01:00
Henk Mollema 97a5149dd9 Remove dnx451 and dnxcore50 TFM's 2016-01-07 00:35:49 +01:00
ryanbrandenburg 6e8b2ecd63 * Switch to new logging style 2016-01-06 15:07:46 -08:00
Victor Hurdugaci 4a9990a83c Build with dotnet 2016-01-06 14:28:39 -08:00
Brennan 54ae0b9296 Unsource CommandLineUtils 2016-01-06 13:19:33 -08:00
Stephen Halter ffd950966e Merge branch 'benaadams/string-construct' into dev 2016-01-06 12:14:15 -08:00
Victor Hurdugaci 7a19d9a9a9 Build instead of compile for samples 2016-01-06 09:56:25 -08:00
ryanbrandenburg a281b2e369 * Add functional tests for sample 2016-01-06 09:37:15 -08:00
Ryan Nowak a500a93dfb Smarter antiforgery
Adds the concept of an IAntiforgeryPolicy marker interface as well as
the ability to overide policy with a 'closer' filter.

Adds a new [IgnoreAntiforgeryToken] attribute for overriding a scoped
antiforgery policy.

Adds a new [AutoValidateAntiforgeryToken] attribute (good name tbd) for
applying an application-wide antiforgery token. The idea is that you can
configure this as a global filter if your site is acting as a pure
browser-based or 1st party SPA. This new attribute only validates the
token for unsafe HTTP methods, so you can apply it broadly.
2016-01-05 17:24:33 -08:00
Hao Kung 01e9616828 React to security changes 2016-01-05 16:22:48 -08:00
Chris R d46de60542 Remove dnx451 and dnxcore50 targets. Reduce Hosting dependency. 2016-01-05 16:11:09 -08:00