Commit Graph

38306 Commits

Author SHA1 Message Date
James Newton-King c08504b08a
MVC startup experience (#8131) 2018-07-25 14:30:51 +12:00
Mike Harder f385308503 Pass "--debug:ephemeral-hive" to "dotnet new" 2018-07-24 17:43:00 -07:00
Ryan Nowak 147c9527f3
Implement EndpointSelector and MatcherPolicy (#646)
Implement EndpointSelector and MatcherPolicy

This change makes the EndpointSelector API more concrete, and is the
beggining of removing EndpointConstraint by making it obsolete.

To that end, I'm introducing MatcherPolicy, which is a
feature-collection API for registering policies that interact with the
DfaMatcher. The two policies that we'll need to start are:
- ability to order endpoints
- ability to append 'policy' nodes to the graph

These two concepts together replace EndpointConstraint. Extending our
graph representation is a really efficient way to processing most common
scenarios.

---

In general this helps with common cases where 4 or so endpoints match
the URL, but with different HTTP methods supported on each. Today we
have to process route values and call into some 'policy' to make a
decision about which one is the winner. This change pushes this
knowledge down into the graph so that it's roughly as cheap as a
dictionary lookup, and can be done allocation-free.

The big savings here is ability to remove more candidates *before*
collecting route data.

---

Along with this change, I also built 'rejection' into the DFA node
model, you can see an example with the HTTP Method handling that I
implemented. I implemented a policy that can treat failure to resolve an
HTTP method as a 405 response by returning a failure endpoint. This is
at the heart of much of the feedback we've gotten in this area around
versioning and http method handling. We also have a version of this
feature in MVC for [Consumes].
2018-07-24 17:31:51 -07:00
ASP.NET CI a33b667941 Updating submodule(s)
Routing => 6f4c10a664

[auto-updated: submodules]
2018-07-24 17:24:02 -07:00
Kiran Challa f37ca0d2e9 Show list of endpoints in CompositeEndpointDataSource's DebuggerDisplayString
[Fixes #633] Show list of registered endpoints as debugger display string
2018-07-24 17:22:43 -07:00
Kiran Challa 6f4c10a664 PR feedback 2018-07-24 17:17:08 -07:00
Kiran Challa 71cb933a08 Show a flattened tree in LinkGenerationDecisionTree's DebuggerDisplayString
[Fixes #636] Flatten the LinkGenerationDecisionTree to show as debugger display string
2018-07-24 17:11:53 -07:00
ASP.NET CI da0ed59aa8 Updating submodule(s)
Routing => 34499dbe24

[auto-updated: submodules]
2018-07-24 16:54:01 -07:00
Steve Sanderson b5ff6db1d4 Fixes for 0.5.0 (#1183)
* Fix macOS debug launch instructions

* Remove license headers from template files
2018-07-24 16:51:00 -07:00
Kiran Challa 34499dbe24 Added support for suppressing link generation for endpoints 2018-07-24 16:47:34 -07:00
Mike Harder 4e21e92337 RazorClassLibrary projects must now use private feed in pre-release SDKs
- https://github.com/aspnet/Universe/issues/1123#issuecomment-407570943
2018-07-24 15:54:52 -07:00
ASP.NET CI 0b83726d6e Updating BuildTools from 3.0.0-alpha1-10012 to 3.0.0-alpha1-10013
[auto-updated: buildtools]
2018-07-24 15:52:08 -07:00
ASP.NET CI 3e6bdc3029 Updating submodule(s)
Mvc => 630aeade07

[auto-updated: submodules]
2018-07-24 15:24:46 -07:00
Kiran Challa 630aeade07 Added tests related to generating urls with route name 2018-07-24 15:06:16 -07:00
ASP.NET CI 040de10f87 Updating BuildTools from 3.0.0-alpha1-10011 to 3.0.0-alpha1-10012
[auto-updated: buildtools]
2018-07-24 14:54:37 -07:00
ASP.NET CI 833c78b6af Updating submodule(s)
AADIntegration => 4dd806bbfb
Antiforgery => 7f7906a72f
AuthSamples => cb3d706ead
AzureIntegration => f33343bff2
BasicMiddleware => 5b1fee6c86
BrowserLink => 8cabeb0681640d0ea6ceed8f6be84dd8d2d7a90e
Caching => da4e3783c6baddf80819ed1b3c340f8769c2216a
Configuration => 3d5749874c835f9c45544213955bc47847037977
CORS => 2598ac76c4
DataProtection => 7f53a18240
DependencyInjection => d38d9c00fbca3ad7a20d8e725b86543b97b97dff
Diagnostics => 1f1673de38
DotNetTools => bd824c9347
EventNotification => 9f51852ef491c89739191c0217adda3e1d2da07e
FileSystem => 17abc8531db87f36ca2ec16a90df11445f5fe88d
Hosting => 2fad79db9c
HtmlAbstractions => b6ddd7489e
HttpAbstractions => 8c4d36c30f
HttpClientFactory => 495560a7c4bdce240b049ac6969018ac95567221
HttpSysServer => 5edeb8c2ab
IISIntegration => 8813000fa4
JavaScriptServices => 02383cd614
JsonPatch => 254a53ec46
KestrelHttpServer => 1f58092b1b
Localization => e12c118ffe
Logging => 6b03bec2c770cb73756156fd1efb2dbae627e579
MetaPackages => 5c4002941d
Microsoft.Data.Sqlite => 1fc2ee35a2905cb8e221d94c0e97ddf211471bde
MusicStore => c0686dc3c3
MvcPrecompilation => 8203f631fc
Options => 575f51b527c9826b4e18bad132fb260c2a40a42c
Proxy => eda8e1b142fdec87fccaa8bda741f604300ea0de
Razor => 27320fc76f
ResponseCaching => 24f85a9051
Scaffolding => accd08116b1574146545b6e0e1215b03e12a3227
Security => 078a13d97d
Session => 1eca19da1b
StaticFiles => 5c49426396
Templating => ba02ab85c1
WebSockets => f5ea0e7b1a

[auto-updated: submodules]
2018-07-24 14:54:35 -07:00
ASP.NET CI 400701857c Updating submodule(s)
IISIntegration => 5bd475ef90

[auto-updated: submodules]
2018-07-24 14:10:19 -07:00
Nate McMaster 5f9073c0a3
Merge branch 'release/2.2' 2018-07-24 13:50:31 -07:00
dotnet-maestro-bot d6eba42bf0 Upgrade to .NET Core 3.0.0-preview1-26724-02 (#1250) 2018-07-24 13:39:32 -07:00
Nate McMaster 27320fc76f
Merge branch 'release/2.2' 2018-07-24 13:37:40 -07:00
Nate McMaster f5ea0e7b1a
Merge branch release/2.2 2018-07-24 13:37:20 -07:00
Nate McMaster 5c49426396
Merge branch release/2.2 2018-07-24 13:37:15 -07:00
Nate McMaster 078a13d97d
Merge branch release/2.2 2018-07-24 13:37:11 -07:00
Nate McMaster 1eca19da1b
Merge branch release/2.2 2018-07-24 13:37:00 -07:00
Nate McMaster 24f85a9051
Merge branch release/2.2 2018-07-24 13:36:54 -07:00
Nate McMaster 8203f631fc
Merge branch release/2.2 2018-07-24 13:32:26 -07:00
Nate McMaster 5edeb8c2ab
Merge branch release/2.2 2018-07-24 13:32:20 -07:00
Nate McMaster 2fad79db9c
Merge branch release/2.2 2018-07-24 13:32:15 -07:00
Nate McMaster 4dd806bbfb
Merge branch release/2.2 2018-07-24 13:32:04 -07:00
Nate McMaster 5b1fee6c86
Merge branch release/2.2 2018-07-24 13:28:45 -07:00
Nate McMaster 2598ac76c4
Merge branch 'release/2.2' 2018-07-24 13:27:38 -07:00
Nate McMaster f33343bff2
Merge branch release/2.2 2018-07-24 13:27:32 -07:00
Nate McMaster b6ddd7489e
Merge branch release/2.2 2018-07-24 13:27:22 -07:00
Justin Kotalik 8813000fa4 Merge release/2.2 into master 2018-07-24 13:22:38 -07:00
Nate McMaster c0686dc3c3
Merge branch 'release/2.2' 2018-07-24 13:22:28 -07:00
Nate McMaster e12c118ffe
Merge branch release/2.2 2018-07-24 13:20:07 -07:00
Nate McMaster 254a53ec46
Merge branch release/2.2 2018-07-24 13:20:07 -07:00
Nate McMaster 8c4d36c30f
Merge branch release/2.2 2018-07-24 13:20:07 -07:00
Nate McMaster 5c4002941d
Merge branch release/2.2 2018-07-24 13:20:06 -07:00
Nate McMaster 02383cd614
Merge branch release/2.2 2018-07-24 13:20:06 -07:00
Justin Kotalik 5bd475ef90
Add event logs for some startup failure cases (#1081) 2018-07-24 13:17:05 -07:00
Stephen Halter 1f58092b1b Merge branch 'merge/release/2.2-to-master' 2018-07-24 13:15:48 -07:00
Nate McMaster cb3d706ead
Merge branch 'release/2.2' 2018-07-24 13:10:44 -07:00
Nate McMaster 1f1673de38
Merge branch 'release/2.2' 2018-07-24 13:10:17 -07:00
Nate McMaster 7f7906a72f
Merge branch 'release/2.2' 2018-07-24 13:09:31 -07:00
Nate McMaster bd824c9347
Merge branch 'release/2.2' 2018-07-24 13:03:37 -07:00
Nate McMaster 7f53a18240
Merge branch 'release/2.2' 2018-07-24 13:02:40 -07:00
Nate McMaster ba02ab85c1
Merge branch 'release/2.2' 2018-07-24 13:00:07 -07:00
ASP.NET CI c691c1a701 Updating submodule(s)
EntityFrameworkCore => 50c8bd0b33b6658141ee10294cd68e2cd8e57edf
Identity => ff0e925742
ServerTests => 79d079a85e

[auto-updated: submodules]
2018-07-24 12:50:31 -07:00
ASP.NET CI 57ac08f4b3 Updating submodule(s)
BrowserLink => 9ceb5fb8a2ff82123f1a6f3d5db05bc1c3c8ed05
Caching => 91013ceecfefa4c06dc6964d5433be837d97e22a
Configuration => cf9a3b90e55a7adeb6a2eeb7246afd38291f6717
CORS => 4d50d4e7e4
DataProtection => 86b35c1932
DependencyInjection => 371be6dc91c1181811d13457dde0e492c790ebc7
Diagnostics => 008e13a4e7
DotNetTools => 157ec70a6b
EventNotification => 3679f4cf918f935ed25dea88870c92ee2b31eada
FileSystem => cfa21feb4c1fc6e5c58352a075b230f57664a805
Hosting => c8718c1c56
HtmlAbstractions => c3635d20f4
HttpAbstractions => 64e4d3215f
HttpClientFactory => 8d001a0da7a1199f803b1b325ebfc02d9469c7ed
HttpSysServer => 4e8dbc7b9d
IISIntegration => 00d7073811
JavaScriptServices => a4bb72e58c
JsonPatch => 9ab15a0a77
Localization => e30ea68fda
Logging => 8ed421c11c9f7646a8eb4984b5f04099b0250a05
MetaPackages => fc7a3e9498
Microsoft.Data.Sqlite => 668ae13aa51caf9f81b37abb87c1479148e52341
MusicStore => f228f3b6e7
Mvc => 6a8f015d34
MvcPrecompilation => 7ee381725b
Options => 38f3d3a80afcdfddc55cc5c9a424fbe66e17b86f
Razor => b3eecf0d46
ResponseCaching => 53401c9bf8
Routing => deddb336b7
Scaffolding => 2be0b7ecb275dae0d603637a253bf2379960a083
Security => f724fcf4ac
Session => f781bad850
StaticFiles => e8b25a5b48
WebSockets => 514126588d

[auto-updated: submodules]
2018-07-24 19:44:54 +00:00