Commit Graph

30373 Commits

Author SHA1 Message Date
Ryan Nowak 89a962716f React to Routing LinkGenerator changes 2018-09-22 15:47:38 -07:00
ASP.NET CI 76d6fa1178 Updating submodule(s)
AzureIntegration => b64aae0353

[auto-updated: submodules]
2018-09-21 23:53:00 +00:00
Pavel Krymets b64aae0353
Do not build runtime site extension (#228) 2018-09-21 16:47:37 -07:00
ASP.NET CI e391170f43 Updating submodule(s)
Mvc => 5c8dfef15e

[auto-updated: submodules]
2018-09-21 22:04:21 +00:00
ASP.NET CI 0d752434df Updating submodule(s)
EntityFrameworkCore => 2313de8e3a7d5d191b642f41db2755b048ba7845

[auto-updated: submodules]
2018-09-21 12:43:35 -07:00
ASP.NET CI 902023ce7d Updating submodule(s)
EntityFrameworkCore => 5f919db93cdaf08d54bef1b7188fdd2ffa853a55

[auto-updated: submodules]
2018-09-21 19:01:56 +00:00
ASP.NET CI 482bfefee6 Updating submodule(s)
EntityFrameworkCore => c59976e09fef817aa18ec0813379591ce64b4405

[auto-updated: submodules]
2018-09-21 11:24:26 -07:00
Doug Bunting 5c8dfef15e
Change `CollectionModelBinder` and `ComplexTypeModelBinder` to enforce `[BindRequired]`
- #8180
- add an error when binding fails for top-level model
  - same case as when MVC creates "default" / empty model i.e. `ParameterBinder` can't detect this
- update `CollectionModelBinder` subclasses and the various providers as well
- controlled by existing `MvcOptions.AllowValidatingTopLevelNodes` option

smaller issue:
- change `ModelBinding_MissingBindRequiredMember` resource to mention parameters too
2018-09-21 11:08:16 -07:00
ASP.NET CI f4c98fe86e Updating submodule(s)
IISIntegration => f808bdc331

[auto-updated: submodules]
2018-09-21 16:37:21 +00:00
Pavel Krymets f808bdc331
Disconnect the disconnect handler when request processing ends (#1413) 2018-09-21 09:13:39 -07:00
ASP.NET CI 9d61c2decb Updating submodule(s)
SignalR => ef3d3b1cdd

[auto-updated: submodules]
2018-09-21 16:04:45 +00:00
BrennanConroy ef3d3b1cdd
[TS] Change websocket library in Node (#2989) 2018-09-21 08:58:54 -07:00
ASP.NET CI 1a4b6a1cd1 Updating submodule(s)
IISIntegration => 14aebebbaa

[auto-updated: submodules]
2018-09-21 15:31:15 +00:00
Justin Kotalik 14aebebbaa
Remove using environment variables for specifying tests. (#1410) 2018-09-21 08:26:20 -07:00
ASP.NET CI e2aab3cc7b Updating submodule(s)
EntityFrameworkCore => 86377a92c9bdaf3a210318c32903c19176a76724

[auto-updated: submodules]
2018-09-21 01:28:19 -07:00
ASP.NET CI 8c0ad93273 Updating submodule(s)
AADIntegration => 14c5fcdb50
AuthSamples => 31bb166372
AzureIntegration => 312221df2f
BasicMiddleware => 6699804fe9
Diagnostics => 8fb6c2a50a
EntityFrameworkCore => 31aec93278d089878867b3279587cd0de6f19f12
Hosting => 13d9774e7a
HttpClientFactory => 95c1cb0907ac3f66b9ebc982b7b3413a073636f6
Identity => 4e0c9f4038
IISIntegration => d463b5e613
JavaScriptServices => 587ead92e4
Mvc => 61386d5f67
Options => 0caa14df0239df24a9711a59900583abaf8fb286
Razor => a898f98a7f
Routing => c559498632
Scaffolding => 3808f07f672c0c5416f547959cc6b8efe2ab5e21
SignalR => 4dfd93c1d7
Templating => a140f38810

[auto-updated: submodules]
2018-09-20 16:51:56 -07:00
Pranav K 31bb166372
Reference Microsoft.NET.Sdk.Razor in projects with Razor files 2018-09-20 16:42:13 -07:00
Pranav K 14c5fcdb50
Reference Microsoft.NET.Sdk.Razor in projects with Razor files 2018-09-20 16:39:50 -07:00
Pranav K 312221df2f
Reference Microsoft.NET.Sdk.Razor in projects with Razor files 2018-09-20 16:13:39 -07:00
Ryan Brandenburg a140f38810 Enhancments 2018-09-20 14:52:16 -07:00
BrennanConroy 4dfd93c1d7
[TS] Wait for handshake response (#2983) 2018-09-20 14:23:43 -07:00
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