Commit Graph

37853 Commits

Author SHA1 Message Date
SteveSandersonMS a83e4d85e4 Show example of using traditional MVC controller+action routing alongside client-side routes 2015-12-11 16:36:18 +00:00
Kiran Challa f2bb90fa55 Fix localization tests 2015-12-10 22:37:20 -08:00
damianedwards 7033871b14 Fix tests in reaction to Options changes 2015-12-10 21:32:05 -08:00
Ryan Nowak 36180ab6d0 Add IRouteHandler, RouteBase, and IRoutingFeature
Adds IRouterHandler, an abstraction for endpoints in the routing system
that can't chain (example: delegates). The idea is that some kinds of
routes aren't really friendly to chaining. If you don't support chaining,
then accept IRouteHandler and work with that rather than IRouter.

There's one implementation of IRouteHandler, RouteHandler. It implements
both IRouter and IRouteHandler.

Adds RouteBase as a base class for routes based on our template syntax and
defaults/constraints/data-tokens. Updated a lot of signatures to be
get/set virtual and mutable to facilitate or bigger variety of usage
scenarios.

Renamed TemplateRoute to just Route, now inherits from RouteBase.

Adds IRoutingFeature for middleware scenarios where you don't have access
to the route context.

Also adds some basic extension methods for accessing route values.
2015-12-10 17:55:03 -08:00
damianedwards 9afd2c256b Make ResourceManagerStringLocalizer thread safe now instances are cached & shared 2015-12-10 17:49:44 -08:00
Pranav K 4d877ec98e Fixing build break 2015-12-10 17:00:42 -08:00
Pranav K 325a681d92 Reacting to Options changes 2015-12-10 16:56:22 -08:00
Kiran Challa 57b88baad0 [Fixes #3624] MVC functional test cleanup (part 2) 2015-12-10 16:26:39 -08:00
ryanbrandenburg e3fee2fd07 * Fix ErrorPage tabs. 2015-12-10 16:07:19 -08:00
Kiran Challa e6bf744d49 Increasing the HttpClient timeout to 5 seconds to fix test failures on Travis CI 2015-12-10 14:35:02 -08:00
Ben Adams 5665eba646 Pool WriteContexts additionally 2015-12-10 20:31:30 +00:00
Stephen Halter 3e42904096 Pool UvWriteReqs instead of SocketOutput.WriteContexts
- This allows all connections accepted by the same thread to share a pool
2015-12-10 20:31:30 +00:00
Ben Adams 992664e0dc Process cascaded work immediately
Without waiting for next libuv pass

Fix for potential regression in #363 due to bug fix.
2015-12-10 20:31:29 +00:00
Ben Adams 97d3340624 Resuse writes, initalize queues 2015-12-10 20:31:28 +00:00
SteveSandersonMS 8a0cbe789e Use cache priming in Music Store sample 2015-12-10 20:30:02 +00:00
SteveSandersonMS 7924a6527a Implement cache priming prototype 2015-12-10 20:27:15 +00:00
Stephen Halter f9d70e601c Set error before changing state in SocketInput.AbortAwaiting
- This fixes a tight race where awaiting code might continue but not see
  the ODE that moved SocketInput into the completed state.
2015-12-10 12:21:20 -08:00
Stephen Halter f42bb02f24 Merge branch 'benaadams/server-crash' into dev 2015-12-10 12:18:13 -08:00
Kiran Challa 573bdcc318 Updated Travis config to enable running on Mac and also fixed test 2015-12-10 11:27:38 -08:00
Brennan 41cd7bf45e Remove display name for Negotiate and Ntlm 2015-12-10 10:19:13 -08:00
Pavel Krymets df3ba7e427 Fix build 2015-12-10 09:37:19 -08:00
Ben Adams 9e8b07ecf8 Error concurrent reads gracefully 2015-12-10 16:25:06 +00:00
Henk Mollema 5c1f362c84 Target dotnet TFM's for class libraries
- Target `net451` and `dotnet5.4`
- Add SPA services project to solution (with .xproj)
- Add NuGet.config
- Update .gitignore
2015-12-10 16:38:29 +01:00
SteveSandersonMS 5ff3e9a051 Use proper filename extension 2015-12-10 15:02:51 +00:00
SteveSandersonMS c95b06d264 Add some notes 2015-12-10 14:56:15 +00:00
SteveSandersonMS bf6548de96 Use angular2-aspnet in Angular 2 Music Store sample 2015-12-10 14:24:38 +00:00
SteveSandersonMS 30281636d6 Beginning angular2-aspnet NPM package 2015-12-10 14:10:21 +00:00
Greg Beaty cda1663d1e Add missing imports 2015-12-10 01:52:01 -05:00
John Luo fd33475c05 Ignore null valued headers #429 2015-12-09 17:23:34 -08:00
Pranav K 8aa3fd6e9c Use TypeNameHelper for pretty printing names 2015-12-09 16:59:12 -08:00
Pranav K a83c556bb7 Remove compilation error support from Startup error page
Fixes #510
2015-12-09 16:58:36 -08:00
John Luo 3b42433f07 Handle null valued headers #158 2015-12-09 16:21:57 -08:00
Hao Kung 3ae4a6e6d4 Add new config options dependency 2015-12-09 16:14:19 -08:00
Stephen Halter 3e2c090d7c Skip more tests on Mono to prevent hangs
- It seems like I missed some FrameworkSkipConditions when I merged these tests
2015-12-09 16:06:00 -08:00
Pavel Krymets 0cbd683825 nix does not have %LOCALAPPDATA%, use SpecialFolder.LocalApplicationData instead 2015-12-09 16:02:05 -08:00
Kiran Challa 562f65c9c8 Changed log level to Information 2015-12-09 15:36:48 -08:00
Stephen Halter ebf642457d Merge branch 'khellang/kestrel-server-tests' into dev 2015-12-09 15:27:51 -08:00
Chris R 0623f3b741 #555 Make SkipToNextMiddleware work on events. 2015-12-09 15:26:47 -08:00
Pranav K 3a7c9c73ed Enabling CoreCLR tests on Travis 2015-12-09 15:20:15 -08:00
Kristian Hellang 4cc070fe28 Added some KestrelServer tests 2015-12-10 00:00:38 +01:00
Greg Beaty f6bb28a71d Add handling of error response from node process 2015-12-09 16:40:04 -05:00
Greg Beaty 1e446b6797 Add exception stack to error response if available 2015-12-09 16:36:30 -05:00
Greg Beaty bc359a3a4b Replace express with native node calls 2015-12-09 16:18:00 -05:00
Ryan Nowak 96de1dbe4b Remove IExcludeTypeFilter
- Removes IExcludeTypeFilter
- Replaced with a property 'ValidateChildren' on ModelMetadata
- Teach ValidationVisitor to respect 'ValidateChildren' for enumerable
  types.
2015-12-09 12:30:13 -08:00
Sebastien Ros 774ee05508 Clean up ViewStartPages usage in RazorView
Fixes #3682
2015-12-09 10:55:59 -08:00
SteveSandersonMS 2261c9964e Preparing to move the ASP.NET MVC validation result client-side code into a separate NPM module 2015-12-09 18:25:09 +00:00
SteveSandersonMS 906a17ea3c Define ValidationErrorResult in SpaServices; use it in MusicStore 2015-12-09 17:30:35 +00:00
Ryan Nowak cf6662d0c3 Partial fix for #3676 - fix race in ElementMetadata
The accessor for ElementMetadata can sometimes return null when
concurrently accessed.

This change solves this issue and simplified a bunch of lazy-computed
properties, by precomputing all type-related facets of ModelMetadata.

This also adds a ElementType property to ModelMetadata to maintain
the current separation of concerns as ModelMetadata is unaware of the
metadata provider.
2015-12-09 08:21:18 -08:00
SteveSandersonMS 78efc77be4 Use MapSpaFallbackRoute in ReactServices and demo 2015-12-09 15:17:31 +00:00
SteveSandersonMS d4f04d211f Create a new shared package, Microsoft.AspNet.SpaServices, to hold MapSpaFallbackRoute (and other common infrastructure yet to be added) 2015-12-09 15:13:56 +00:00