Commit Graph

39583 Commits

Author SHA1 Message Date
SteveSandersonMS e5178d2938 Update peerDependency on aspnet-webpack-react to allow Webpack 2.2.0+ as well as 1.x 2017-01-27 15:32:19 +00:00
SteveSandersonMS e4d00a2da3 Update aspnet-webpack to support Webpack 2-style configs that export a function 2017-01-27 14:44:25 +00:00
SteveSandersonMS 345b4f64b5 Update aspnet-webpack-react to support Webpack 2.x-style configs 2017-01-27 11:18:26 +00:00
Cesar Blum Silveira ce0686a03b Merge branch 'rel/1.0.3' into dev 2017-01-26 17:23:01 -08:00
Ryan Nowak d187edbd76 Use the TagHelperBinder to dedupe taghelpers
This change does deduplication of taghelpers during the binding/rewriting
phase. This is needed when a taghelper has multiple sets of html
attributes that are required (behaves like an OR). This is used lots in
MVC.

The old codebase used to do this in the codegen phase, but it seems
beneficial to do as early as possible.
2017-01-26 15:36:42 -08:00
Ajay Bhargav Baaskaran 98d5d1c70e Flow parser errors over to the CSharpDocument 2017-01-26 15:32:03 -08:00
Arthur Vickers e7c039caca Remove obsolete file. 2017-01-26 14:21:43 -08:00
Kiran Challa b240929cf4 Merge branch 'rel/1.1.1' into dev
Conflicts:
	NuGet.config
	src/Microsoft.AspNetCore.JsonPatch/project.json
	test/Microsoft.AspNetCore.JsonPatch.Test/project.json
2017-01-26 14:02:29 -08:00
Kiran Challa 7a487a880a [Fixes #48] Regression: List add must support adding items where index is same as count of elements 2017-01-26 13:48:12 -08:00
Ryan Nowak 0bf9abbedf Hardcoding the right value for MVC 2017-01-26 13:39:55 -08:00
Ryan Nowak 6a95002f0e Fix lowering of taghelpers inside a section
The IR lowering phase was attaching the 'tag helper fields' node to the
builder instead of to the top-level node (document). This meant that
things wouldn't be where we expect when the first tag helper occurrence is
inside a directive block (section).

Found this porting MVC to use the new Razor codebase.
2017-01-26 13:06:06 -08:00
Kiran Challa cd4afdc083 [Fixes #116] Set 'no-store' also in Cache-Conrol header 2017-01-26 12:56:15 -08:00
Ajay Bhargav Baaskaran 7725c20c47 Enabled Razor.Evolution tests on linux 2017-01-26 12:34:35 -08:00
Arthur Vickers f35a3b4918 Remove obsolete calls to AddEntityFramework 2017-01-26 12:03:21 -08:00
Pranav K 3e214e2399 Introducing IPageModelActivatorProvider
Fixes #5480
2017-01-26 11:31:14 -08:00
Jass Bagga 0795ec1d9a Add tests for Replace operation with null checks for property (#56)
See #32
2017-01-26 11:28:35 -08:00
Michael Friis 8ce50e3fb3 Add details on running in Docker Windows containers 2017-01-26 11:10:14 -08:00
Ryan Nowak 243446d225 Quick fix for MVC. Hardcoding fullname of HelperResult. 2017-01-26 10:37:52 -08:00
David Fowler eafbe74160 Fixed parameter count mismatch when invoking methods with wrong case (#162)
* Fixed parameter count mismatch when invoking methods with wrong case
- Hub methods were being tracked with 2 dictionaries, one for parameter names
the other for callbacks. This change introduces a single dictionary that stores
the hub name to a HubMethodDescriptor. That descriptor stores the parameter types
and method info for the bound hub method.
- The callback is now just an invoke method on the HubEndPoint itself.
- Added tests for case sensitivity in hub method names
2017-01-26 18:25:49 +00:00
Ryan Brandenburg 51b3e82701 OnStarting throws when Response.HasStarted 2017-01-26 10:21:29 -08:00
Ryan Nowak 9df4674ee5 Make property attributes public in IR 2017-01-26 09:13:04 -08:00
Ryan Nowak 936c43a96c Make instrumentation pass public for MVC 2017-01-26 08:26:27 -08:00
Doug Bunting cc584ada39 Remove extra lines in 1840d68 2017-01-26 08:20:52 -08:00
Andrei Ignat 1840d6823b Addresses #5694 (#5695)
* Add "
`Microsoft.AspNetCore.StaticFiles": "1.2.0-*"`
to project,json
Add
`app.UseStaticFiles();`
in the
`public void Configure(IApplicationBuilder app)`
from `Startup` class.

Addresses #5694
2017-01-26 08:18:19 -08:00
moozzyk c997ea8165 Converting pipelines to channels 2017-01-26 08:04:58 -08:00
moozzyk 1119bcf1b3 Sharing channel connections 2017-01-26 08:04:56 -08:00
David Fowler 05cc7792df Synchronize the background scan and closing of connections
- It was possible for the application to be torn down during
a background scan. When that happened, the timer would be disposed
before the end of the scan and would throw an ObjectDisposedException
when timer resumption happened. This change introduces a lock that avoids that
race.

Fixes #161
2017-01-26 07:50:29 +00:00
Pranav K 8f085c8e5d Create an x86 process to target 32-bit applications
Fixes #47
2017-01-25 17:46:26 -08:00
Pranav K a031c4badb Update OpenId package versions 2017-01-25 17:09:26 -08:00
Jass Bagga 9b1271ba19 Remove obsolete DefaultHtmlGenerator ctor (#5711) 2017-01-25 16:25:12 -08:00
David Fowler 162cd1fc06 Handle misbehaving user code (#159)
* Handle misbehaving user code
- Execute EndPoint logic on a threadpool thread
- Turn synchronous exceptions into async ones to unify the
error handling
- Added tests
2017-01-25 23:45:43 +00:00
David Fowler 934f6a70d1 Various fixes in HttpConnectionDispatcher (#151)
- The connection state object is manipulated by multiple parties in a non thread safe way. This change introduces a semaphore that should be used by anyone updating or reading the connection state. 
- Handle cases where there's an active request for a connection id and another incoming request for the same connection id, sse and websockets 409 and long polling kicks out the previous connection (https://github.com/aspnet/SignalR/issues/27 and https://github.com/aspnet/SignalR/issues/4)
- Handle requests being processed for disposed connections. There was a race where the background thread could remove and clean up the connection while it was about to be processed.
- Synchronize between the background scanning thread and the request threads when updating the connection state.
- Added `DisposeAndRemoveAsync` to the connection manager that handles`DisposeAsync` throwing and properly removes connections from connection tracking.
- Added Start to ConnectionManager so that testing is easier (background timer doesn't kick in unless start is called).
- Added RequestId to connection state for easier debugging and correlation (can easily see which request is currently processing the logical connection).
- Added tests
2017-01-25 22:27:55 +00:00
Cesar Blum Silveira 9051bbf322 Fix deadlock in SocketOutput (#1304). 2017-01-25 14:11:21 -08:00
Kiran Challa 42ae78a360 [Fixes #5012] ProducesAttribute should not inherit from ResultFilterAttribute 2017-01-25 14:00:35 -08:00
Cesar Blum Silveira 448a927a0f Merge branch 'rel/1.1.1' into dev 2017-01-25 13:56:39 -08:00
Kiran Challa 8ac6b6699f [Fixes #4945] Simple string returned by controller action is not a valid JSON! 2017-01-25 13:29:18 -08:00
Cesar Blum Silveira aacb7d7453 Fix flaky tests. 2017-01-25 11:00:31 -08:00
Cesar Blum Silveira 0d2b60b315 Merge branch 'rel/1.0.3' into dev 2017-01-25 10:55:04 -08:00
Cesar Blum Silveira ba3976aeeb Update to version 1.1.1. 2017-01-25 10:30:16 -08:00
Cesar Blum Silveira c8da6e0628 Fix deadlock in SocketOutput (#1304). 2017-01-25 10:13:52 -08:00
Cesar Blum Silveira fe089a8826 Update SDK version to 1.0.0-preview2-003154. 2017-01-25 10:12:03 -08:00
Dan Kirkham acd1dc5e24 Fixed inconsistent single quotes (#154) 2017-01-25 09:43:02 -08:00
Cesar Blum Silveira dcc98c0cc6 Merge branch 'rel/1.0.3' into dev 2017-01-25 09:35:00 -08:00
moozzyk 3ad8efb4ab Fixing test after getid to negotiate rename 2017-01-25 09:32:26 -08:00
Cesar Blum Silveira b9de869a2d Add SDK version to global.json. 2017-01-24 17:10:53 -08:00
David Fowler 9eb42cce2d Clean up disposal of connection state (#148)
* Clean up disposal of connection state
- Removed IDisposable and added a DisposeAsync method to ConnectionState
- Added ApplicationTask and TransportTask to ConnectionState as first class
properties so that it is easy to see (in a process dump or debugger) the
outstanding tasks that Sockets is keeping track of on a per connection basis.
2017-01-25 00:08:08 +00:00
Pawel Kadluczka fb4a99ffff Fixing test hangs, adding timeouts. (#149) 2017-01-24 15:51:58 -08:00
Chris R 779115b1ad #407 Add ContentLength to IHeaderDictionary 2017-01-24 15:14:46 -08:00
Cesar Blum Silveira 4ac842b050 Update to version 1.0.3. 2017-01-24 14:57:51 -08:00
Chris R 119945ca02 Cache the ContentLength header value 2017-01-24 14:57:00 -08:00