Commit Graph

30389 Commits

Author SHA1 Message Date
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
ASP.NET CI 4fed962ee8 Updating submodule(s)
BasicMiddleware => 4a4dde182f
EntityFrameworkCore => 65bb62264c2bb8c3b05d3a9882967e598841b635
IISIntegration => 5e896ca506
KestrelHttpServer => f3b6430aab
SignalR => 70ea1268a7

[auto-updated: submodules]
2018-09-18 09:49:59 -07:00
BrennanConroy 70ea1268a7
Use JUnit 5 for tests (#2968) 2018-09-18 09:45:29 -07:00
Matt Mitchell d74ab7d8cb
Merge pull request #1408 from mmitche/fix-2.1-2.2-erge
Fix merge of 2.1->2.2
2018-09-18 09:44:54 -07:00
BrennanConroy 8f1ecc8bba Merge branch 'release/2.1' into release/2.2 2018-09-18 08:56:01 -07:00
ASP.NET CI d63ab042c7 Updating submodule(s)
SignalR => bc148a0724

[auto-updated: submodules]
2018-09-18 08:41:55 -07:00
BrennanConroy bc148a0724
Incorrect nameof usage (#2967) 2018-09-18 08:36:17 -07:00
Matt Mitchell 19eba188f2 Fix merge of 2.1->2.2 2018-09-18 07:43:01 -07:00
Stephen Halter f3b6430aab
Initialize Heartbeat in KestrelServer.StartAsync (#2939)
Fixes #2850 again
2018-09-17 16:43:30 -07:00
tiago-soczek a7e412ec80 Fix category logger for HttpsConnectionAdapter and LoggingConnectionAdapter. #2929 (#2935) 2018-09-17 16:01:14 -07:00
Chris Ross (ASP.NET) b8423b8530 Change how HTTP/2 frames are parsed and generated #2858 2018-09-17 14:48:43 -07:00
David Fowler 2999aa54cd
Remove calls to MemoryMarshal.GetReference (#2931)
- Spans can be pinned natively in C# 7.3
2018-09-17 14:47:04 -07:00
John Luo 69ff195f66 Enable hpack/4.2 - Maximum Table Size test
- Ensure dynamic tables size updates occur at the beginning of the header block
2018-09-17 12:46:51 -07:00
John Luo 025aca52df Port long Huffman encoding bug fix
https://github.com/dotnet/corefx/pull/32043
2018-09-17 12:41:36 -07:00