Commit Graph

43822 Commits

Author SHA1 Message Date
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
Ben Adams ecca980c91 Implement IHeaderDictionary.ContentLength 2017-01-24 14:55:48 -08:00
Pranav K 32cd737b62 Update to VS RC3 2017-01-24 14:17:53 -08:00
Ryan Nowak ec45d8ea8c Remove typeof from codegen
The C# codegen was using some of the new names for various TagHelper
constructs instead of the old namespace.

This change reverts to the old names.
2017-01-24 13:45:50 -08:00
Chris R 56bd85aaf2 #298 Add a timeout for draining requests on shutdown 2017-01-24 13:43:17 -08:00
David Fowler a1c8d3d841 Fix the TS client to respect the new endpoint
- Seems like the ts client wasn't updated to use /negotiate instead
of /getid
2017-01-24 21:12:53 +00:00
David Fowler 1e957a9e5a Allow processing of incoming invocations in parallel (#143)
* Allow processing of other incoming invocations in parallel
- Don't wait on the response of an invocation to pick up
the next message from the channel.
- Unhandled exceptions should continue bubbling up correctly
2017-01-24 20:46:17 +00:00
Nate McMaster 822cb35624 Prepare 1.1.0 release and pin floating versions 2017-01-24 10:53:05 -08:00
Ryan Nowak 32efe43f85 Delete some dead code 2017-01-24 10:29:30 -08:00
Ryan Nowak 03b63d97a2 Quick fixes from MVC
We're close to hooking up new Razor to MVC. This is a set of enabling
'quick fix' changes to resolve some blockers to using Razor.Evolution in
the product.

Main issues:
 - Types not public enough - anything in the .Legacy namespace is still
   slated from 'improvement'
 - Wrong references. We don't want .Workspaces in MVC, so moving the heavy
   lifting of TagHelper discovery to CodeAnalysis.Razor.
2017-01-24 09:22:28 -08:00
Pranav K 6fd04366b1 Make dotnet-install runnable 2017-01-23 16:11:57 -08:00
Pranav K 0ce64a5b83 Update the path to dotnet-install.sh 2017-01-23 16:05:25 -08:00