Commit Graph

38808 Commits

Author SHA1 Message Date
dotnet-maestro[bot] b72626907d Update dependencies from aspnet/Blazor (#10816)
- Microsoft.AspNetCore.Blazor.Mono - 0.10.0-preview6.19303.4
2019-06-04 09:03:31 -07:00
Nate McMaster be2f0cf8f2
Merge branch 'release/3.0-preview6' 2019-06-04 08:52:09 -07:00
Steve Sanderson 55b310d16b Blazor template fixes (#10770)
* Invert UseLocalDB condition in template

* Replace UseBlazorClientSideFiles with UseClientSideBlazorFiles

* Add NotFoundContent to client-side templates, and make all consistent

* In client-side templates, remove references to MyGet feeds as they are no longer updated

* Workaround for lack of conditionals in .razor: Two separate versions of MainLayout.razor

* Workaround for lack of conditionals in .razor: Four variants of LoginDisplay.*.razor

* Fix launchSettings for Windows auth
2019-06-04 08:38:41 -07:00
Isaac Levin 4298f63b2a remove cookie consent from templates 2019-06-04 11:03:09 -04:00
Andrew Stanton-Nurse b9afd4a3b3
Merge pull request #6517 from Kahbazi/LogEventName#5
Remove nameof for event name
2019-06-04 07:56:14 -07:00
Jeow Li Huan 544a01ae0a Add no-store to OpenIdConnectHandler cache-control response headers (#10318). (#10741) 2019-06-04 07:52:16 -07:00
Isaac Levin 241de2306f
Update _ValidationScriptsPartial.cshtml 2019-06-04 09:50:54 -04:00
Isaac Levin d1b9d14eef remove cdn tests 2019-06-04 09:37:34 -04:00
David Fowler 851a1eeb39
If libuv doesn't unwind gracefully log a warning (#10823)
- We added 3 critical logs to see if there was a resource leak happeing during the loop thread shutdown, turns out that during testing its very common for the thread to not end immediately because of the latency of thread pool dispatching (the latency between queuing and execution of the work item). As a result, we log a warning instead of an error.
2019-06-04 01:20:03 -07:00
Justin Kotalik 45b0d0d0de
Save condition backcollection between runs (#10776) 2019-06-03 22:31:38 -07:00
Doug Bunting b3ddd65a15
Add Microsoft.Extensions.ApiDesription.Server project and package (#10669)
- #8242 2 of 2, # #4912
- add missing project reference provider
  - remove incorrect `$(IsImplementationProject)` settings in `dotnet-getdocument` and `GetDocumentInsider`
  - re-run .\eng\scripts\GenerateProjectList.ps1
2019-06-03 18:57:53 -07:00
Doug Bunting 78b38a7ba0
[release/3.0-preview6] Unpin EF dependencies then grab the latest (#10805)
- #10050
- includes new preview 6 packages from Blazor, Extensions, EntityFrameWorkCore, and AspNetCore-Tooling
- update coherent parent chain to use EF Core instead of AspNetCore-Tooling again
- partially reverts 58c67727df
2019-06-03 16:33:14 -07:00
dotnet-maestro[bot] f2dd4dfd61 Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190603.6 (#10797) 2019-06-03 15:51:18 -07:00
Pranav K 39a9d63c10 Revert "Add an option to SignalR to guarantee ordering of send events… (#10807)
This reverts commit 4646c4a5e4.
2019-06-03 15:49:55 -07:00
Isaac Levin 13ebb41fa9 remove cdn from templates 2019-06-03 17:06:47 -04:00
Isaac Levin 979782fdfe
Merge pull request #2 from aspnet/master
merge
2019-06-03 16:38:22 -04:00
Doug Bunting 3bb092bdab
Unpin EF dependencies then grab the latest (#10682)
- grab the latest from Blazor, EF Core (thanx @ajcvickers) and AspNetCore-Tooling
- partially reverts 58c67727df
2019-06-03 11:54:20 -07:00
Isaac Levin 34a68d5f48 #10333 Template Updates (#10395)
#10333 Template Updates
2019-06-03 10:18:32 -07:00
David Fowler d001f5c519
Use the defaults that existed in Kestrel before (#10740) 2019-06-03 10:00:53 -07:00
Nate McMaster 20475aa0f7
Update branding to Preview 7 (#10772) 2019-06-03 09:43:31 -07:00
dotnet-maestro[bot] f44d4107fd [master] Update dependencies from dotnet/arcade (#10765)
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19302.2
- Microsoft.DotNet.GenAPI - 1.0.0-beta.19302.2
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19302.2
2019-06-03 09:42:18 -07:00
Kahbazi c7cb8467bf Use GetEndpoint extension method (#10745) 2019-06-03 09:23:43 -07:00
Ryan Nowak 670865d2a8
Make JSON case-insensitive (#10727)
* Make JSON case-insensitive

Fixes: #10724

The rationale for this change is that existing .NET client code for the
most part uses JSON.NET with its default settings (preserve property
casing). This includes the WebAPI client - which we're encouraging
everyone to use. It's not really reasonable for us to break everyone
using webapi client.

* Make separate options and add extension method

* fixit

* fix build

* fix text
2019-06-03 09:16:58 -07:00
Pranav K 1ed5febf93
Application restarts on changes to Razor files (#10716)
* Remove Razor versioning number from DotNetWatch.targets

Application restarts on changes to Razor files

* .cshtml and .razor files cause dotnet-watch to reload by default
* .cshtml files do not cause VS or dotnet-watch to reload when using RuntimeCompilation

Fixes https://github.com/aspnet/AspNetCore/issues/9644
2019-06-03 07:48:23 -07:00
Pranav K 4646c4a5e4
Add an option to SignalR to guarantee ordering of send events (#10506)
* Add an option to SignalR to guarantee ordering of send events

Fixes https://github.com/aspnet/AspNetCore/issues/9901
2019-06-03 04:29:42 -07:00
Brennan f0df10f211
AuthorizeHelper will no-op if endpoint routing is used (#10471) 2019-06-02 22:35:45 -07:00
Doug Bunting 25672336f9
Add more properties controlling service reference code generation (#10641)
- `$(OpenApiGenerateCodeOnBuild)` controls if targets run before compile targets
  - #4924
  - also correct multiple invocations when project has multiple target frameworks
- `$(OpenApiBuildReferencedProjects)` controls whether `@(OpenApiProjectReference)` items build automatically
  - #6582
- rename a few other properties and targets

also:
- add symbols for Microsoft.Extensions.ApiDescription.Client task assembly
  - #10508
- unconditionally run `OpenApiGetDocuments` target in referenced projects
  - corrects compilation in design-time builds
  - no longer uses `@(ProjectReferenceWithConfiguration)`; referenced project chooses all property values

nits:
- consolidate into a single `$(GenerateOpenApiCodeDependsOn)` property
- rename task assembly and namespaces in Microsoft.Extensions.ApiDesription.Client to match the project
- allow `OpenApiGetDocuments` targets to run in parallel if `$(BuildInParallel)` is enabled
- remove `$(OpenApiCodeDirectory)` normalization; never concatenated with anything else
2019-06-02 22:09:42 -07:00
Doug Bunting 4c8ca0b080
Rewrite dotnet-getdocument and GetDocument.Insider to retrieve all documents in one go (#10667)
- #8242 1 of 2
- save a cache file listing all retrieved documents
- remove .NET Core App 2.0 support
- remove ServiceProjectReferenceMetadata.targets, related `Project` class, and searches for a project
  - tools will run within a project and get needed information from project on command line
- roll framework forward in both tools to expand their applicability when using .NET Core
- use Microsoft.Extensions.HostFactoryResolver.Sources (part of #4923)
  - remove Microsoft.AspNetCore.Hosting.Abstractions dependency

nits:
- refactor methods in `GetDocumentCommandWorker`
- reorder option addition for consistency and to place `--help` at the top of help output
- consolidate information about method signatures at top of `GetDocumentCommandWorker`
- consolidate `try` / `catch` blocks in `GetDocumentCommandWorker`
- shorten the lifespan of a `Task`
- ensure GetDocument.Insider exit codes are unique
- make a few more `string`s `const`
- fold a few expressions over fewer lines
2019-06-02 21:58:08 -07:00
Ryan Nowak 91e6839c8d
Adds inferred [Required] for non-null ref types (#9978)
* Adds inferred [Required] for non-null ref types

Follow up from #9194

This change adds the automatic inference of [Required] for non-nullable
properties and parameters. This means that if you opt into nullable
context in C#8, we'll start treating those types as-if you put
[Required] on them.

This provides a nice invariant to rely on, namely that MVC will honor
your declared nullability contract OR report a validation error. This
reinforces the guidance already published by the C# team for using
POCOs/DTOs with nullability. See
https://github.com/aspnet/specs/blob/master/notes/3_0/nullable.md for my
analysis on the topic.

* preemptively fix PR feedback xD

* PR feedback and functional test

* more

* Fix test failures

* fix

* more

* Do a barrel roll
2019-06-02 17:11:43 -07:00
David Fowler 620c673705
Noop on the request body stream in TestServer (#10738)
* Noop on the request body stream in TestServer
- Disposable should not be observable on the client side if the server disposes the body. This is similar to how Kestrel noops on dispose to avoid common usages like StreamReader disposing the underlying stream.
2019-06-02 13:53:36 -07:00
Arthur Vickers 173cf1786e Identity/MusicStore/ErrorPage test re-anabling
Fixes #10672 #7925 #10670

Also, moves MusicStore tests to SQLite for better reliability
2019-06-02 09:31:24 -07:00
David Fowler 400835e0b4
Remove Transport.Abstractions from existence (#10722) 2019-06-01 17:22:47 -07:00
N. Taylor Mullen 202ccebb0d Add analyzer to detect TagHelpers in code blocks.
- We detect `__tagHelperRunner.RunAsync` method calls in lambdas, anonymous methods, local functions, and method declarations. Upon detection we verify that the methods are `async Task` returning and if not log an error.
- Added analyzer tests to verify all the scenarios TagHelpers in code blocks can occur in.

#8630
2019-06-01 13:27:46 -07:00
David Fowler bb9b0cbfa5
Clean up some pipes things (#10728)
- Use the Kestrel memory pool
- Fix bad casts
2019-06-01 11:10:09 -07:00
Pranav K 807cbf5dd3
dotnet-watch 2019-06-01 08:13:42 -07:00
Hao Kung 6e35229b01
Make dbsets virtual (#10638) 2019-05-31 22:56:41 -07:00
Hao Kung 1a766d1ab4
Remove windows phone from EnableAuthenticator.cshtml (#10287) 2019-05-31 22:53:57 -07:00
Hao Kung c769dd7736
Add SignInWithClaims overload and set amr claim appropriately (#10636) 2019-05-31 22:52:47 -07:00
Hao Kung b75b892eac
Add CertificateAuthentication (#9756) 2019-05-31 22:49:40 -07:00
Daniel Roth 4dde8b9461
Update Blazor survey link for preview6 (#10719) 2019-05-31 19:23:33 -07:00
Andrew Stanton-Nurse a96642f6fd Remove custom stream->pipe wrappers and make BodyReader/BodyWriter read-only (#10154) 2019-05-31 18:38:25 -07:00
Pranav K 7a66d5a02f
Remove Razor versioning number from DotNetWatch.targets
Application restarts on changes to Razor files

* .cshtml and .razor files cause dotnet-watch to reload by default
* .cshtml files do not cause VS or dotnet-watch to reload when using RuntimeCompilation

Fixes https://github.com/aspnet/AspNetCore/issues/9644
2019-05-31 16:48:37 -07:00
Javier Calvarro Nelson 1165a6fb16
Support navigation during prerendering (#10694) 2019-06-01 01:40:45 +02:00
Ryan Brandenburg 15b7dc5aee
Exclude wwwroot from IdentityUI content (#10664) 2019-05-31 16:22:39 -07:00
Hao Kung 5d6c2edab0
Require ClaimsPrincipal.Identity.IsAuthenticated for SignIn by default (#9482) 2019-05-31 15:43:00 -07:00
Javier Calvarro Nelson 2d2806b083
Better circuit ids (#10688)
* Better circuit ids.
* Generates cryptographically strong circuit ids.
  * 32 bits of entropy from a PRNG.
  * DataProtected for authenticated encryption.
2019-06-01 00:26:46 +02:00
Dylan Dmitri Gray bd4b843678
Dylan/queue limit (#10590)
* Added queue limit, extra requests are 503'd

* Combined counters into an atomic `TotalRequests`

* small safety fix

* Updated log messages; simplified flow
2019-05-31 14:53:19 -07:00
Ryan Nowak 993d943aec
Add unmatched attributes support to forms (#10712)
* Add unmatched attributes support to forms

* Add capture unmatched support to validation message and summary

* ref assemblies.... more like rip assemblies am I right?
2019-05-31 14:50:33 -07:00
David Fowler ecacf90c7f
Added support for unix domain sockets to the sockets transport (#10560)
- Added a test for UnixDomainSockets on both transports
2019-05-31 14:04:04 -07:00
Justin Kotalik b2fa47d379
Fix helix test (#10695) 2019-05-31 13:27:49 -07:00