Commit Graph

38292 Commits

Author SHA1 Message Date
Ryan Nowak d4cbb86f46 Add Support for Templated Components (#1404)
* Test namespace cleanup

* Add recognication for RenderFragment in tag helpers

* Remove dead code from node writers

* refactor type check

* Continue to treat child content as a delegate in codegen

* Add extension to enumerate child content

* Reorganize code generation tests

These were growing a bit disorganized, and weren't really result in good
code reuse.

* fix test base class

* Add some child-content tests

* Add an explicit node for ChildContent

Adds a strongly typed node to represent a 'ChildContent' and what it
contains. This allows us to simplify the code generation path,
detect/processes more issues in IR passes, and will be essential for
supporting multiple child content.

* Ignore ChildContent in components when it's just whitespace

* Add diagnostic for duplicate child content

* Add support for explicit child content elements

Precursor to support for multiple child content items

* Add support for multiple child-content elements

* Change delegate signature for RenderFragment<T>

* Clean up Tag Helper constants

* Allow RenderFragment<T> as a child content

* Allow renaming the template parameter

* Improve error message for invalid child content

* Add diagnostic for repeated child content parameter names
2018-09-10 18:59:51 -07:00
Ryan Nowak 087e6d05ee
Merge pull request #790 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-09-10 18:54:06 -07:00
ASP.NET CI 4d2965262e Updating submodule(s)
Routing => e5cc4564cb

[auto-updated: submodules]
2018-09-11 00:30:15 +00:00
ASP.NET CI 7efe2414c7 Updating BuildTools from 2.2.0-preview1-20180910.1 to 2.2.0-preview1-20180910.3
[auto-updated: buildtools]
2018-09-10 23:59:38 +00:00
ASP.NET CI 3ed3842980 Updating submodule(s)
Routing => 5f172efa9d

[auto-updated: submodules]
2018-09-10 23:59:30 +00:00
Ryan Nowak e5cc4564cb add docs for constructor 2018-09-10 16:55:39 -07:00
Ryan Nowak 5f172efa9d Add support Endpoint Name endpoint finding 2018-09-10 16:50:46 -07:00
Ryan Nowak 57cc8aea96 Various improvments to route values link APIs
- Add docs
- Add support for templates
- Remove undesirable constructor parameter
- misc cleanup
2018-09-10 16:50:46 -07:00
ASP.NET CI d55460d35c Updating submodule(s)
Razor => d2d84d00f5

[auto-updated: submodules]
2018-09-10 16:38:07 -07:00
Chris Ross (ASP.NET) f38f60f8ce Map ListenOptions.Protocols from IConfiguration #2903 2018-09-10 16:27:51 -07:00
ASP.NET CI 887f95cb30 Updating submodule(s)
Routing => c683844817

[auto-updated: submodules]
2018-09-10 23:22:50 +00:00
N. Taylor Mullen d2d84d00f5 Allow GeneratedCodeContainer to accept initial output. 2018-09-10 16:14:25 -07:00
Ryan Nowak c683844817 Fix #553 - Add logging for new LinkGenerator
Adds logging for all of the failure cases of link generation.
2018-09-10 16:11:43 -07:00
ASP.NET CI caa0ba7ebe Updating submodule(s)
Mvc => 81cb0e6945

[auto-updated: submodules]
2018-09-10 16:10:45 -07:00
James Newton-King 81cb0e6945
Merge branch 'merge/release/2.2-to-master' 2018-09-11 11:03:23 +12:00
ASP.NET CI b4d4705630 Updating submodule(s)
Mvc => 6e27a04bf3

[auto-updated: submodules]
2018-09-10 22:49:47 +00:00
ASP.NET CI 081a1e040e Updating BuildTools from 3.0.0-alpha1-20180907.9 to 3.0.0-alpha1-20180910.2
[auto-updated: buildtools]
2018-09-10 15:43:11 -07:00
ASP.NET CI 38642e1466 Updating submodule(s)
Razor => da935bfa95
Templating => c5f1d5a3eb

[auto-updated: submodules]
2018-09-10 15:43:01 -07:00
N. Taylor Mullen da935bfa95 Generated document output persists result to generated code container.
- Prior to this we had a `BackgroundDocumentGenerator` that would constantly be updating generated code containers. With this changes we've changed the details in how a `GeneratedCodeContainer` can be mutated. It can now be touched from any thread and is updated when an underlying `DocumentSnapshot` has available content. However, if a generated output comes through that's older then the last seen output we no-op.
- Removed `BackgroundDocumentGenerator` SetOutput logic.
- Updated tests to react to new behavior of `GetGeneratedOutputAsync`.
- Added new test to verify getting generated output results in the setting of the host documents output.
2018-09-10 15:24:35 -07:00
ASP.NET CI b42d1d0793 Updating submodule(s)
EntityFrameworkCore => 78689f7da93f2c63624e2614342f113b9aae655b
KestrelHttpServer => a50b455d12
Mvc => 13bb673774

[auto-updated: submodules]
2018-09-10 15:15:34 -07:00
Ryan Brandenburg c5f1d5a3eb Merge branch 'merge/release/2.2-to-master' 2018-09-10 15:14:41 -07:00
ASP.NET CI e643ff1919 Updating submodule(s)
SignalR => 399ac267ca

[auto-updated: submodules]
2018-09-10 15:14:17 -07:00
James Newton-King 6e27a04bf3
No HttpContext to route constraints in MvcEndpointDataSource (#8436) 2018-09-11 10:12:09 +12:00
Ryan Brandenburg 13bb673774 Merge branch 'merge/release/2.2-to-master' 2018-09-10 15:10:13 -07:00
ASP.NET CI 3006f745ef Updating submodule(s)
Razor => f93f67a53a

[auto-updated: submodules]
2018-09-10 22:09:31 +00:00
BrennanConroy 399ac267ca
Cancel previous request on close (#2923) 2018-09-10 15:09:05 -07:00
Andrew Stanton-Nurse 188bbc6ce1
add component detection task (#1338) 2018-09-10 14:58:47 -07:00
Ajay Bhargav Baaskaran f93f67a53a
Better logging to help debug test failure (#2576) 2018-09-10 14:17:53 -07:00
ASP.NET CI 20d5cf9bb2 Updating submodule(s)
KestrelHttpServer => de5ccb5c78

[auto-updated: submodules]
2018-09-10 14:04:40 -07:00
John Luo a50b455d12 Merge branch 'release/2.2' 2018-09-10 13:59:35 -07:00
John Luo de5ccb5c78 PR feedback for https://github.com/aspnet/KestrelHttpServer/pull/2838 2018-09-10 13:58:46 -07:00
Brice Lambson e2e88c3d03 Merge branch 'release/2.2' 2018-09-10 13:26:38 -07:00
ASP.NET CI 982abb6971 Updating submodule(s)
EntityFrameworkCore => dc0f1b01d352ca6afe9c8af85b3608fa5db698e9
Templating => 14b1432481

[auto-updated: submodules]
2018-09-10 13:18:36 -07:00
Brice Lambson 2f7359d20f
React to aspnet/EntityFrameworkCore#13245 2018-09-10 13:14:48 -07:00
Ryan Brandenburg 14b1432481 Fix min.css files 2018-09-10 12:25:27 -07:00
ASP.NET CI 9842863a5d Updating BuildTools from 2.2.0-preview1-20180907.8 to 2.2.0-preview1-20180910.1
[auto-updated: buildtools]
2018-09-10 18:57:36 +00:00
ASP.NET CI 44e88c417f Updating submodule(s)
SignalR => adc5706bcb

[auto-updated: submodules]
2018-09-10 18:57:28 +00:00
BrennanConroy adc5706bcb
Add more redis logs (#2936) 2018-09-10 11:51:27 -07:00
ASP.NET CI f159d0294b Updating submodule(s)
Scaffolding => 7f3aedfc07451af8c28ab2b1c4234a441b668af0

[auto-updated: submodules]
2018-09-10 11:33:08 -07:00
ASP.NET CI f91c0d1738 Updating submodule(s)
Razor => 96709c4d77

[auto-updated: submodules]
2018-09-10 11:05:08 -07:00
Ajay Bhargav Baaskaran 96709c4d77
Actually verify classified spans (#2575) 2018-09-10 10:48:47 -07:00
ASP.NET CI a3955ec31c Updating submodule(s)
KestrelHttpServer => 58ba3f82a5

[auto-updated: submodules]
2018-09-10 10:36:12 -07:00
Chris Ross (ASP.NET) 58ba3f82a5 Merge branch 'release/2.2' 2018-09-10 10:30:43 -07:00
ASP.NET CI edf5008858 Updating submodule(s)
HttpClientFactory => 4ed1a660521d3404d06d75404aba78cebcd76b8a

[auto-updated: submodules]
2018-09-09 18:51:58 -07:00
ASP.NET CI ac15678d49 Updating submodule(s)
HttpClientFactory => 59f08065f0ecf32f308254da9439544a2fecd607

[auto-updated: submodules]
2018-09-09 15:50:25 -07:00
ASP.NET CI c33fb1f6ee Updating submodule(s)
Mvc => f573b8840a

[auto-updated: submodules]
2018-09-09 15:21:47 -07:00
Ryan Nowak f573b8840a Fix aspnet/Routing#782
Currently MVC is still running the IActionConstraint implementations for
features that we've already moved into the routing layer. This has a
significant perf cost associated with, and so we want to skip it because
it's redundant. However if anyone has implemented their own
`IActionConstraint`-based features, they still need to just work.

This change takes the approach of skipping the action constraint phase
at runtime unless we see something 'unknown'. This is an all or nothing
choice, and will run action constraints if **any** action constraint we
don't special case exists. This is the most compatible behavior (running
redundant constraints) when the application is using constraints that
the developer implemented.

Another approach I considered was to eliminate these constraints as part
of the process of building ADs. I don't think that's ideal because
people have written code that introspects action constraints. We should
consider something like this in 3.0.
2018-09-09 15:17:05 -07:00
ASP.NET CI bcd6b1ebdd Updating submodule(s)
Routing => c176a50adf

[auto-updated: submodules]
2018-09-09 14:43:01 -07:00
Ryan Nowak c176a50adf
Merge pull request #789 from dotnet-maestro-bot/merge/release/2.2-to-master
[automated] Merge branch 'release/2.2' => 'master'
2018-09-09 14:38:27 -07:00
Ryan Nowak b19cf4cf1a
Merge branch 'master' into merge/release/2.2-to-master 2018-09-09 13:56:53 -07:00