Commit Graph

411 Commits

Author SHA1 Message Date
Ryan Nowak 9cd3fe34a5 Improve tests for catch-all + defaults/nulls 2016-04-11 15:17:07 -07:00
John Luo e3a9bc07e5 Merge branch 'release' into dev 2016-04-11 10:01:08 -07:00
John Luo 2b929327aa Moving web.config and use ANCM 2016-04-11 10:00:28 -07:00
Ryan Nowak a51c78da06 Remove dictionary alloc in routing
This changes TemplateMatcher to mutate RouteData.Values directly instead
of creating a new dictionary and then merging in values. This is one the
biggest single costs in routing in terms of both allocations and execution
time.

So Match now becomes TryMatch. This will dirty the state of the RVD, so
the caller needs to snapshot it before calling into it (handled
inside the TreeRouter or RouteCollection).

Some subtle changes were needed to how/when values are added to be
compatible with the existing tests. The general idea is that we add null
values for non-parameter defaults or catchalls, but only if they don't
trounce an existing value. This logic used to live in MergeValues but now
it's in TryMatch since TryMatch might be working from existing data.

Also fixed the .sln to avoid building a package that we use as shared
source.
2016-04-08 08:46:00 -07:00
Pranav K fe66fb7f2f Removing imports from src projects 2016-04-08 06:49:12 -07:00
Pranav K e337756cce Merge branch 'release' into dev 2016-04-08 06:49:12 -07:00
Pranav K e679c276fe Merge branch 'release' into dev 2016-04-06 09:47:26 -07:00
Pranav K f5135e2d2d Updating to release. 2016-04-06 09:47:24 -07:00
Doug Bunting 67f424360c React to HttpAbstractions namespace changes
- aspnet/HttpAbstractions#549 and aspnet/HttpAbstractions#592
- clean up `using`s
2016-03-30 16:10:41 -07:00
jacalvar 5bcea61743 Return IServiceCollection from AddRouting extension methods 2016-03-28 15:40:58 -07:00
Doug Bunting 39b4f6fe53 An `ObjectPoolProvider` is always registered
- react to aspnet/Hosting/pull#673
2016-03-25 10:08:16 -07:00
David Fowler 7399cc8957 Fixed build 2016-03-25 02:40:08 -07:00
John Luo b7aa4e627e Reacting to Hosting changes 2016-03-24 12:03:16 -07:00
Kiran Challa 0c3f6497db Fixes issue of request path segment length greater than the wildcard template route
Fixes https://github.com/aspnet/Mvc/issues/4256
2016-03-23 17:36:07 -07:00
Victor Hurdugaci 457cd92bca Remove the makefile 2016-03-17 14:43:34 -07:00
Eilon Lipton d89afcbbf0 Fix package metadata 2016-03-15 14:54:14 -07:00
Cesar Blum Silveira be43238414 Update README.md 2016-03-14 21:28:55 -07:00
Nate McMaster c5d8b8d109 Fix incorrect doc comments 2016-03-14 15:29:46 -07:00
Ajay Bhargav Baaskaran 3127e7a2e9 [Fixes #294] Set DefaultHandler in RouteBuilder 2016-03-10 15:25:34 -08:00
John Luo b7fc5f06cd Fix test with mismatched literal type 2016-03-10 15:15:56 -08:00
Nate McMaster 4c59b4d226 Fix backslashes in yml config.
[ci skip]
2016-03-09 17:44:48 -08:00
Nate McMaster 93be223d55 Limit the branches that build on our public CI.
[ci skip]
2016-03-09 16:35:12 -08:00
Victor Hurdugaci 9a6426496a Update the build scripts to the latest version 2016-03-07 20:55:02 -08:00
Ajay Bhargav Baaskaran 8a59bcff08 Added Company, Copyright and Product attributes to AssemblyInfo 2016-03-03 17:33:09 -08:00
Doug Bunting 27c6d8c665 Remove project name from output path
- aspnet/Coherence-Signed#187
- remove `<RootNamespace>` settings but maintain other unique aspects e.g. `<DnxInvisibleContent ... />`
- in a few cases, standardize on VS version `14.0` and not something more specific
2016-03-02 21:06:00 -08:00
N. Taylor Mullen bb7cb4a0d9 Transition to netstandard.
- dotnet5.X => netstandard1.y (where y = x-1).
- DNXCore50 => netstandardapp1.5.
- Applied the same changes to ifdefs.
2016-03-01 13:37:03 -08:00
Victor Hurdugaci ca83e8af78 Return the error code from build.cmd 2016-02-28 10:12:17 -08:00
Victor Hurdugaci cc84a5f4df Update the build scripts 2016-02-27 12:51:14 -08:00
mnltejaswini 41e3acf0fa [Perf] Avoid Linq method and save its related allocations in TreeRouter 2016-02-26 15:23:10 -08:00
mnltejaswini 1c9a54aeb8 [Perf] Reduce allocations in Link generation code paths 2016-02-24 17:25:32 -08:00
Doug Bunting a80a63271f Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 13:01:39 -08:00
Kiran Challa 05ff447d7d Fix service collection extensions: New overload having lambda for options, return void and added doc comments. 2016-02-22 11:06:09 -08:00
John Luo 8c64656882 Updating test TFMs for custom test discovery 2016-02-19 15:08:13 -08:00
Ajay Bhargav Baaskaran 3d8dcfac4f Enabled xml doc generation 2016-02-19 14:42:54 -08:00
Kiran Challa 51c4dd43b3 Enable tests to run using dotnet xunit runner 2016-02-10 15:01:44 -08:00
Ryan Nowak 9209f0c5a4 Remove bad reference from Routing sample 2016-02-10 12:46:15 -08:00
Pranav K 2e916284cc Reacting to CoreCLR package version changes 2016-02-08 09:33:49 -08:00
N. Taylor Mullen 67d2ec580c Update project.json to remove redundant System.Runtime dependency.
- This package is pulled in transitively.
2016-02-05 17:23:05 -08:00
Ryan Nowak 0b39ee0468 Remove Routing.Extensions 2016-02-04 10:03:30 -08:00
Ryan Nowak d97947e229 Move routing extensions to .Routing 2016-02-04 09:55:09 -08:00
Ryan Nowak 4b980c8afa Optimize defensive copies where possible 2016-02-03 15:36:42 -08:00
Ryan Nowak 48eb000a0e Fix routing build 2016-02-02 11:44:52 -08:00
Pranav K b4099adefb Fixing build 2016-01-29 09:33:03 -08:00
Doug Bunting 153c229b7e Update .gitignore
- ignore launchSettings.json in particular
2016-01-26 15:18:29 -08:00
N. Taylor Mullen 70d674410e Rename AspNet 5 file contents.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:24:38 -08:00
N. Taylor Mullen ace4553d77 Rename AspNet 5 folders and files.
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:24:31 -08:00
John Luo 34e3d14d78 Reacting to hosting rename 2016-01-17 17:28:32 -08:00
Nate McMaster 1dfcabbc3e Updating build script 2016-01-14 16:41:15 -08:00
jacalvar 9b217a4026 Fixes [#276] Throw a nicer error when the routing services haven't been added to DI 2016-01-14 15:11:20 -08:00
Pranav K 672d596248 Changes to build using dotnet-cli 2016-01-13 13:02:32 -08:00