Commit Graph

30402 Commits

Author SHA1 Message Date
Pranav K 587ead92e4
Reference Microsoft.NET.Sdk.Razor in projects with Razor files 2018-09-20 13:55:13 -07:00
BrennanConroy f0a34a4ca4
Clone Windows Identity in LongPolling connections (#2985) 2018-09-20 13:39:25 -07:00
Pranav K 61386d5f67
Reference Microsoft.NET.Sdk.Razor in projects with Razor files 2018-09-20 13:21:45 -07:00
Pranav K a898f98a7f Print an error when using Razor build with an older version of the Sdk 2018-09-20 13:14:06 -07:00
Mikael Mengistu bf1aa1d818
Make tests classes and HubMessageType enum package private in the Java client(#2992) 2018-09-20 12:44:19 -07:00
James Newton-King c559498632
Make parameter transformer test verifiable (#804) 2018-09-20 12:41:29 -07:00
Pavel Krymets d463b5e613
Fix ReaderThrowsResetExceptionOnInvalidBody (#1420) 2018-09-20 12:38:35 -07:00
Ryan Nowak 8fb6c2a50a Allow cancellation to propagate 2018-09-20 11:04:35 -07:00
Mikael Mengistu f88b7ce044
Move Java chat sample to samples package (#2974) 2018-09-20 10:33:16 -07:00
Ryan Nowak 5c4c746797 Reaction PR from routing rename 2018-09-20 10:15:50 -07:00
Ryan Nowak a657c3bdf2 Updates to Parameter Transformer
- Rename -> IOutboundParameterTransformer
- Make it operate on object
- Implementing caching for constraints/tranformers for link generation
(cached as part of TemplateBinder)
2018-09-20 10:15:42 -07:00
Pavel Krymets d28468ca8f
Override IIS headers in inproc (#1409) 2018-09-20 09:21:34 -07:00
Pavel Krymets b08b237927
StopServer before asserting TestSink (#1416) 2018-09-19 17:20:29 -07:00
Pavel Krymets 375d037946
Add applicationInitialization tests (#1402) 2018-09-19 16:32:24 -07:00
BrennanConroy 6ba5e87b45
Allow CancellationToken in streaming hub methods (#2818) 2018-09-19 15:21:07 -07:00
Ryan Nowak 4259b65c16
Use options for registering health checks (#479)
* Use options for registering health checks

This change pivots to use options for registering health checks. We get
a few pretty nice things out of this, and it unblocks some of our
requirements.

Now all registration methods support the application developer
configuring the name, failure-status, and tags for each health check.
This is a requirment, that we weren't really satisfying - which is what
led to this redesign. In support of this health checks now return pass/fail,
and the service is responsible for assigning the status.

----

Health check authors that need configuration data (connection string as
an example) now have three ways to do this depending on their
requirements.
1. Create an instance and register that (easiest)
2. Use Type Activation and pass parameters (middle)
3. Use named options (richest)

We expect most health checks to need/want some kind of configuration -
which 1) works pretty well to solve. However many other health checks
will need DI + configuration. It was also a gap that we didn't have a
good way to use named options, when it's such a good fit for our
scenarios.

Added new registration methods for type activation that allow you to
pass parameters for 2).

Added a context type that allows the running health check access to its
registration for 3).

----

Redesigned and renamed how status gets reported. Health checks return
pass/fail result, but the overall HealthReport includes entries of a
different type. This seems fine because there isn't really a way to
consume a HealthCheckResult directly - the service is the only consumer.

----

Added support for tags. This was easy to add now that we have a separate
registration type, and it's quite handy for building filters (see
sample).

* HARDER BETTER STRONGER FASTER
2018-09-19 14:48:34 -07:00
BrennanConroy 4b378692a4
[Java] Add Invoke support (#2961) 2018-09-19 13:58:15 -07:00
Pranav K 9c424b7b02
Use content-type specified by ProducesAttribute if no formatter supports it
This allows users to use `ProducesAttribute` to specify the content-type
for action results such as FileStreamResult where the result determines the content type
and the specified value is informational.

Fixes https://github.com/aspnet/Mvc/issues/5701
2018-09-19 13:51:31 -07:00
BrennanConroy 8be051ce34
Idempotentize AddSignalR (#2972) 2018-09-19 13:39:34 -07:00
Pranav K f7da3503d6 Allow Implicit 200 status codes to match Ok result 2018-09-19 12:51:13 -07:00
ASP.NET CI f04440816a Updating submodule(s)
Hosting => 3f7ee338d4

[auto-updated: submodules]
2018-09-19 19:43:04 +00:00
Pranav K 13d9774e7a
Merge remote-tracking branch 'origin/release/2.1' into release/2.2 2018-09-19 12:37:23 -07:00
Mike Harder 3f7ee338d4 Change SelfHostDeployer to use dynamic ports by default (#1383)
* Should significantly reduce flaky test failures due to AddressInUse exceptions
* Addresses https://github.com/aspnet/Hosting/issues/1296
2018-09-19 12:35:51 -07:00
Justin Kotalik b41f1f0cae
Make cert fixture lazy (#1412) 2018-09-19 12:26:14 -07:00
Mikael Mengistu f27df1d61e
Java Async APIs (#2971) 2018-09-19 10:14:35 -07:00
Pranav K f70df60435 Move RazorGenerate and RazorTagHelper tasks in to the Sdk
Loading multiple versions of a task assembly result results in MSBuild on .NET Core to fail.
Addressing this by moving the tasks in to the Sdk and renaming it. This should avoid
immediate issues for a 2.1 and 2.2 project co-existing and future proofs 2.2 and later.

Fixes https://github.com/aspnet/Razor/issues/2553
2018-09-19 10:09:56 -07:00
Pavel Krymets 4e57b0e1f1
Add functional style request aborted test (#1406) 2018-09-19 10:09:44 -07:00
Pavel Krymets 608889b110
Remove server header assert (#1407) 2018-09-19 10:06:23 -07:00
ASP.NET CI d4ba9b9dcc Updating submodule(s)
EntityFrameworkCore => fecef9c5da8b1133e209ff83ac1bd2674cd14bcb

[auto-updated: submodules]
2018-09-19 16:50:12 +00:00
Brice Lambson 7fb4940258 ⬆️ Update NetTopologySuite.Core to 1.15.1 2018-09-19 09:22:07 -07:00
ASP.NET CI a8db58f2bc Updating BuildTools from 2.2.0-preview1-20180911.1 to 2.2.0-preview1-20180918.1
[auto-updated: buildtools]
2018-09-18 17:25:06 -07:00
ASP.NET CI 52562c314c Updating submodule(s)
IISIntegration => b6c311c14d
Razor => 7144add4ad

[auto-updated: submodules]
2018-09-18 17:24:58 -07:00
Pranav K 7144add4ad
Check for ITagHelper in tag helper feature provider (#2602)
Fixes #2482
2018-09-18 16:52:34 -07:00
Pavel Krymets b6c311c14d
Add client disconnect and connection abort support (#1388) 2018-09-18 16:36:52 -07:00
ASP.NET CI 1841c5efea Updating submodule(s)
EntityFrameworkCore => 2bb602fc07b526bb9f68c1019b68b8c9f058ff0f
FileSystem => 32dbcac21c7fb906bb358ed682afe8dfbc0a526b

[auto-updated: submodules]
2018-09-18 23:10:39 +00:00
ASP.NET CI c4c5650769 Updating submodule(s)
EntityFrameworkCore => 198eebae2fae5ccb2ff0e03027f419a61f18eaf7

[auto-updated: submodules]
2018-09-18 22:38:34 +00:00
ASP.NET CI e039e2e8e5 Updating submodule(s)
Templating => f63412f1bb

[auto-updated: submodules]
2018-09-18 22:07:08 +00:00
ASP.NET CI f5452b1293 Updating submodule(s)
IISIntegration => ece5ad36e2
KestrelHttpServer => 10458d5ecc

[auto-updated: submodules]
2018-09-18 21:34:44 +00:00
Ryan Brandenburg f63412f1bb Update package verions 2018-09-18 14:34:39 -07:00
ASP.NET CI 9ad33e5166 Updating submodule(s)
KestrelHttpServer => 15ba5065a9

[auto-updated: submodules]
2018-09-18 14:33:01 -07:00
Justin Kotalik ece5ad36e2
Implement ITlsConnectionFeature (#1390) 2018-09-18 14:22:56 -07:00
Stephen Halter 10458d5ecc Merge branch 'release/2.1' into release/2.2 2018-09-18 14:15:35 -07:00
Stephen Halter 15ba5065a9
Skip connection reset tests on macOS in 2.1 (#2942) 2018-09-18 14:11:28 -07:00
ASP.NET CI d795da1ff5 Updating submodule(s)
EntityFrameworkCore => 5aac90ec26df036d81986db8ad9fc881ee02e0d0
Razor => fc86cc3ca1

[auto-updated: submodules]
2018-09-18 14:00:59 -07:00
Pranav K fc86cc3ca1 Allow Invoke \ InvokeAsync methods for a ViewComponent to be defined in base types
Fixes https://github.com/aspnet/Mvc/issues/8397
2018-09-18 13:38:48 -07:00
ASP.NET CI eb38bdf9fc Updating submodule(s)
EntityFrameworkCore => ba37ae53f5beb96f9c69f74316938cc164a42059

[auto-updated: submodules]
2018-09-18 13:29:16 -07:00
ASP.NET CI 069cc971ab Updating submodule(s)
Mvc => c73b13f544

[auto-updated: submodules]
2018-09-18 18:53:04 +00:00
Pranav K c73b13f544
Cherry-pick @pranavkm's functional test for #7562
- 30a5eda508 / origin/prkrishn/form-file-value-provider

Was:
Design: Use a value provider to allow nested form files

Fixes https://github.com/aspnet/Mvc/issues/7562
2018-09-18 11:44:48 -07:00
Doug Bunting 47d6d4e82c
Update `FormFileModelBinder` to re-add prefix `ParameterBinder` removed incorrectly
- #7562 part 2
- add `OriginalModelName` to `ModelBindingContext`

nit: take VS suggestions, mostly to inline collection initialization in `FormFileModelBinderTest`
2018-09-18 11:44:48 -07:00
Doug Bunting c13e2498a8
Create model in `ComplexTypeModelBinder` if ANY property has a greedy binding source
- #7562 part 1
2018-09-18 11:44:37 -07:00