Commit Graph

43822 Commits

Author SHA1 Message Date
jacalvar 2b0bea675e [Fixes #3752] Cleanup Controller invocation pipeline
* Added a Release method to IControllerActivator
* Changed Create in IControllerActivator to take in a ControllerActionContext
* Move the check to determine if a controller can be instantiated into the controller activator.
* Move logic for disposing controllers into the controller activator and make release on the
  controller factory delegate into the activator.
* Changed release methods to take in a controller context.
2016-01-26 14:15:03 -08:00
N. Taylor Mullen e952009b09 Fix broken test.
- `ViewBuffer.Pages` is now initialized on `ViewBuffer` construction.
2016-01-26 12:00:25 -08:00
Chris R 44f03ef83f Restrict x-forwarded-for evalutation. Credit: pmhsfelix.
Use x-forwarded-for validation to restrict other forwarders.

Rename OverrideHeaderMiddleware to ForwardedHeadersMiddleware.

Fix tests

Fix package version.
2016-01-26 10:59:13 -08:00
Doug Bunting 7446cec516 Update `TagHelperSampleTest` to avoid failures due to statefulness of the service
- have one test muted at the moment in our CI
- add `Reset()` action to the service, enabling `// Arrange` to bring `Index()` content to a known state
  - add a couple more tests to `TagHelperSampleTest` covering the new action and empty `Index()` list

nits:
- use `ViewData`, not `ViewBag`
2016-01-26 10:50:51 -08:00
Pavel Krymets 79eb0138c7 Migrate to using System.Runtime.Loader.AssemblyLoadContext 2016-01-26 10:22:25 -08:00
SteveSandersonMS 2218212c92 Require exactly the same version of rxjs as current Angular 2 beta 2016-01-26 15:25:55 +00:00
SteveSandersonMS 44fd9dd6ab Publish update angular2-aspnet NPM module so it takes dependency on correct version of Angular 2016-01-26 15:21:50 +00:00
SteveSandersonMS 47c956cc4d Move packages under top-level 'src' folder 2016-01-26 15:06:36 +00:00
Ben Adams 00b8a13b55 Merge+rename+rename resolve 2016-01-26 11:33:14 +00:00
SteveSandersonMS 5e5b12dc54 Remove explicit imports for NgIf/NgFor/NgClass, as that's no longer needed 2016-01-26 11:20:57 +00:00
SteveSandersonMS ea4c668a63 Make the edit form and delete dialog work again 2016-01-26 11:17:01 +00:00
Doug Bunting 7dddd06a38 Add more tests of `TagBuilder.CreateSanitizedId()`
- investigating #3951
2016-01-25 21:58:39 -08:00
Ben Adams 9f2d685cbf Merge remote-tracking branch 'refs/remotes/aspnet/shalter/always-immediate' into combined-fixes 2016-01-26 02:15:56 +00:00
N. Taylor Mullen a47dd7ad63 Fix design time line mapping Razor Host tests. 2016-01-25 17:39:10 -08:00
Ryan Nowak 18909506e1 Flatten TagHelperOutput when writing
This change 'flattens' a TagHelperOutput when writing it out to an
HtmlTextWriter. This is a beneficial perf change because more often than
not the thing being written to is a ViewBuffer in Razor, which uses pooled
memory. This allows us to 'join' islands of pooled ViewBuffer memory back
into the main buffer instead of keeping them wrapped up in a
TagHelperOutput or TagHelperContent.
2016-01-25 17:32:18 -08:00
N. Taylor Mullen 2e7e1f9c85 Fix design time line mapping test. 2016-01-25 17:30:21 -08:00
Pranav K f9ad93c8a5 Fixing XML docs 2016-01-25 16:08:04 -08:00
N. Taylor Mullen 6a43c420b6 Remove unneeded project.json 2016-01-25 15:48:03 -08:00
N. Taylor Mullen 964e58723c Revert "Try out a Karma test or two"
This reverts commit d696f268f7.
2016-01-25 15:35:54 -08:00
N. Taylor Mullen 1f77aa445a Fix XML docs to pass xml-docs-test. 2016-01-25 14:55:42 -08:00
Chris R 8b29de8993 Remove ISessionStore.Connect in raction to removal of IDistrbutedCache.Connect. 2016-01-25 13:56:14 -08:00
Ryan Nowak 434da683fc Improve buffering of Razor output in MVC
These changes are aimed at significantly improving the performance of
MVC/Razor when a large amount of content is in play or a large number of
TagHelpers are used.

A few issues addressed:

- Buffer sync writes after a flush has occurred so that we can write them
  asyncronously. The issue is that an IHtmlContent can only do sync
  writes. This is very bad for Kestrel in general. Doing these writes
  async is better for our overall perf, and the buffer that we use for it
  is from the pool.

- 'Flatten' ViewBuffers when possible. A page with lots of TagHelpers can
  end up renting a ViewBuffer and only write 2-3 things into it. When a
  ViewBuffer sees another ViewBuffer we can either steal its pages, or
  copy data out and 'return' its pages. This lets us use 3-4 buffers for a
  large Razor page instead of hundreds.
2016-01-25 12:40:52 -08:00
Pranav K 6f885c7113 Adding empty project.json to unblock build 2016-01-25 12:11:50 -08:00
Pranav K 43b65ca46c Update the documentation for IViewComponentHelper.InvokeAsync
Fixes #3974
2016-01-25 12:05:28 -08:00
Pranav K 68b5c950c9 Temporarily revert "Adding messages showing that the tool is running" until we can sort out fetching packages
This reverts commit 824acd1ace.
2016-01-25 11:15:43 -08:00
Stephen Halter a4b8b01c99 Remove immediate parameter from Frame.ProduceStart
- Simply call SocketOutput.WriteAsync(_emptyData) to force headers to be flushed
2016-01-25 11:09:15 -08:00
John Luo b4eacceb42 Remove request and response logging which has been added in the Hosting layer 2016-01-25 10:55:43 -08:00
Doug Bunting d696f268f7 Try out a Karma test or two
- #1993
2016-01-25 10:50:32 -08:00
Stephen Halter 7570da9daa Flush chunked writes before the entire response completes
Ensure chunked writes force an "immediate" write by removing the now
unused immediate parameter from ISocketOutput.Write
2016-01-25 10:34:15 -08:00
moozzyk 824acd1ace Adding messages showing that the tool is running 2016-01-25 10:23:58 -08:00
moozzyk bed9432275 Adding creating Azure specific configuration 2016-01-25 10:17:11 -08:00
moozzyk 674efca4de Adding HttpPlatformHandler logging defaults to web.config
- writing a default path to log file if one does not exist
 - setting stdoutLogEnabled to false if the attribute does not exist
2016-01-25 10:17:10 -08:00
Chris R 31f4b41a2e Remove unused broken WebListener dependency. 2016-01-25 10:11:04 -08:00
Brennan b74e26883e React to Logging API changes 2016-01-25 09:50:09 -08:00
Brennan 3fce15bc6a React to Logging API changes 2016-01-25 09:35:11 -08:00
Brennan 4e5c99fabc React to Logging API changes 2016-01-25 09:32:41 -08:00
Brennan 2d2e71e2c8 React to Logging API changes 2016-01-25 09:29:39 -08:00
SteveSandersonMS 381b7b884e Update to Angular 2 Beta 1. New bug: no longer waits for server-side HTTP requests to complete - waiting for info to resolve this. 2016-01-25 15:13:30 +00:00
David Fowler a1aeb4313e Remove unused dependency
- The authorization stack doesn't depend on AspNetCore at all really
2016-01-24 23:57:17 -08:00
Ryan Nowak 8b1bd343ba Internal cleanup in ViewFeatures 2016-01-24 22:13:29 -08:00
Ryan Nowak de3b33caf1 Internal cleanup in Razor 2016-01-24 21:50:33 -08:00
Chris R 3780a47528 Fix tests broken by renames. 2016-01-24 19:21:40 -08:00
Chris R 0c6a805405 #632 Save twitters access token secret as a claim. 2016-01-24 18:45:04 -08:00
Chris R 38de3d6013 #526 Change from storing expires_in to calculating expires_at. 2016-01-24 18:45:02 -08:00
Ryan Nowak a276169693 Reorganize logging, move more types to internal 2016-01-24 17:24:34 -08:00
Ben Adams 3f414782b9 Remove spinning for blocked socket ops
As per https://github.com/dotnet/corefx/pull/5655
2016-01-24 14:49:25 +00:00
Stephen Halter 63e0ed8773 Use the new NuGet package location in LibuvCopier 2016-01-23 19:30:22 -08:00
Ben Adams de34d14abb WriteChunked immediate for large responses 2016-01-23 10:48:24 +00:00
Ben Adams 0ca8ca0328 Update FrameResponseStream Cancellation 2016-01-23 10:17:09 +00:00
Stephen Halter 735c0fbbef Added new test to verify failed writes complete all pending write tasks
- Changed MockLibuv to never fall back to real libuv methods.
- Fixed EngineTests.ConnectionCanReadAndWrite
2016-01-23 10:17:07 +00:00