Steve Sanderson
0fd0fa3b79
Include TPN file in VSIX and all nupkg files built from "src" directory
2018-09-19 13:35:01 +01:00
N. Taylor Mullen
2b1bdb7342
Move RazorCompletionFactsService to CodeAnalysis.Workspaces.Razor.
...
- Also updated workspaces test project to also compile for netcoreapp2.2.
2018-09-18 17:34:45 -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
Ryan Brandenburg
f63412f1bb
Update package verions
2018-09-18 14:34:39 -07:00
Justin Kotalik
ece5ad36e2
Implement ITlsConnectionFeature ( #1390 )
2018-09-18 14:22:56 -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
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
Steve Sanderson
27189875fb
Fix build targets bug (incremental build input was based on wrong property name)
2018-09-18 12:57:50 +01: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)
2a731baaa3
Merge branch 'release/2.2'
2018-09-17 15:34:32 -07:00
Daniel A. White
4a4dde182f
replacing string interpolation with proper logging syntax ( #363 )
2018-09-17 15:33:17 -07:00
Chris Ross (ASP.NET)
7f348c4e0f
Merge branch 'release/2.2'
2018-09-17 15:12:12 -07:00
Chris Ross (ASP.NET)
8e4f7365ad
Merge branch 'release/2.2'
2018-09-17 15:06:31 -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
Pavel Krymets
5e896ca506
Implement IHttpBufferingFeature ( #1391 )
2018-09-17 12:04:12 -07:00
Ryan Brandenburg
7356b9634b
Merge branch 'merge/release/2.2-to-master'
2018-09-17 11:58:51 -07:00
Justin Kotalik
2cd6ad6d50
Add windows auth tests for inproc ( #1385 )
2018-09-17 11:57:46 -07:00
Ryan Nowak
060698a52f
Update to use non-capturing timer
2018-09-17 11:08:06 -07:00
Ryan Nowak
354752cf16
Add support for generic-typed components ( #1417 )
...
* Add the ability to discover generic types/properties
* Add @typeparam directive
Adds the ability to declare a generic-typed component using Razor.
* Add a 'type parameter' property to generic components
* Adds the ability to consume generic-typed components
2018-09-16 14:01:15 -07:00
James Newton-King
5a65e7b7ce
Merge remote-tracking branch 'origin/release/2.2'
2018-09-15 08:21:44 +12:00
BrennanConroy
7af3472ef4
Merge pull request #2950 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-09-14 11:37:05 -07:00
Pranav K
4b83f7b510
Make FileVersionProvider repleacable
...
Fixes #6371
2018-09-14 09:14:02 -07:00
Pranav K
233140c33a
Allow IFormFile parameters annotated with [FromForm] to be correctly … ( #8452 )
...
* Allow IFormFile parameters annotated with [FromForm] to be correctly bound in ApiControllers
Fixes #8311
2018-09-14 09:06:32 -07:00
Suchiman
b99d805bc0
ILWipe: Remove AsyncStateMachineAttribute
2018-09-14 10:33:32 +01:00
James Newton-King
412944e1f5
Transform parameters before lower casing in link generation ( #793 )
2018-09-14 17:19:43 +12:00
David Fowler
48b3f18642
Improve the handshake request parsing errors ( #2953 )
...
- Print out the raw handshake payload as utf8 text if it fails to parse as JSON or if we're missing properties. This should help flesh out potentially buggy clients.
2018-09-13 22:11:17 -07:00
Ryan Nowak
426a48a65a
Performance improvments to LinkGenerator and TemplateBinder
2018-09-13 19:11:28 -07:00
Ben Adams
5e083c371b
Don't capture asynclocals onto Timer
2018-09-13 17:28:30 -07:00
Ryan Nowak
35597db277
Fix #8451
...
Change tokens can call into your code IMMEDIATELY when you subscribe. I
reviewed our other usage of ChangeToken.OnChange in MVC and everything
looks good.
2018-09-13 15:38:42 -07:00
Ryan Nowak
9a68f48a5c
Minor improvments to RVD perf
2018-09-13 14:55:00 -07:00
Ryan Brandenburg
b8f7f967ce
Normalize FSharp templates and don't check in site.min.js
2018-09-13 14:41:32 -07:00
Ryan Nowak
41c4a47680
Minor perf updates for RVD
...
Porting changes from perf work in
https://github.com/aspnet/Routing/pull/788
Includes porting/adding the RVD benchmarks, as well as a new TryAdd
method.
2018-09-13 13:45:08 -07:00
Pranav K
d0ddb068be
Return FormCollection.Empty when Content-Length is 0 ( #1038 )
...
* Return FormCollection.Empty when Content-Length is 0
Fixes https://github.com/aspnet/Mvc/issues/5631
2018-09-13 13:35:31 -07:00
Chris Ross (ASP.NET)
55e5e56422
Dispatch Http/2 write callbacks #2878
2018-09-13 11:53:30 -07:00
Steve Sanderson
fa19f1c4ac
Update linker config following upgrade to linker 07c0d489b2c335d0ecddc5a427ef29d39afc8d84
2018-09-13 12:44:08 +01:00
Justin Kotalik
3649f5bb81
Add OutOfProc logging tests/ merge all inproc test sites into a single site ( #1384 )
2018-09-12 23:20:52 -07:00
James Newton-King
9df5918239
Clean up endpoint builder ( #791 )
2018-09-13 10:27:01 +12:00
James Newton-King
cf484a49d0
Merge branch 'merge/release/2.2-to-master'
2018-09-13 09:22:33 +12:00
Pranav K
cb88e906b2
Allow ProducesAttribute to apply along with conventions
...
Fixes #8389
2018-09-12 13:58:02 -07:00
Pranav K
a73d073eea
Allow ApiControlelrAttribute to be applied to assemblies
...
Fixes #7343
2018-09-12 13:42:22 -07:00
Pranav K
13281613a5
Refactor DefaultPageApplicationModel to use conventions
2018-09-12 12:28:16 -07:00
Rick Anderson
b9452868db
Update IdentityServiceCollectionExtensions.cs docs ( #1962 )
2018-09-12 12:04:28 -07:00
BrennanConroy
b423313e5c
Merge branch 'release/2.2'
2018-09-12 09:48:39 -07:00
Simon Cropp
43d4416a1d
Fix typos ( #8413 )
2018-09-12 09:34:45 -07:00
James Newton-King
dfae9c208a
Add IParameterTransformer support ( #8329 )
2018-09-12 21:46:41 +12:00
James Newton-King
cee960f3c5
Add IParameterTransformer ( #750 )
2018-09-12 21:45:25 +12:00
James Newton-King
105f8b47a1
Fix endpoint support for area/controller/action in attribute route ( #8447 )
2018-09-12 21:16:50 +12:00
BrennanConroy
8dffc68cea
Cancel previous request on close ( #2923 ) ( #2942 )
2018-09-11 15:50:00 -07:00
Steve Sanderson
6ff3674b16
Refactor server-side blazor startup to allow Azure SignalR. Fixes #1227 ( #1396 )
...
* Move startup action config into AddServerSideBlazor, so that UseServerSideBlazor is reduced to trivial shorthand that can become optional
* Make BlazorHub public so developers can use it with UseAzureSignalR
* Move BlazorHub to Microsoft.AspNetCore.Blazor.Server namespace for easier consumption
* Add notes
* Have E2E tests validate that devs don't have to call UseServerSideBlazor
* Add forgotten tweak
* CR: Document that BlazorHub methods are not intended for application use.
* CR: Rename extension method to UseSignalRWithBlazorHub
* CR: TryAdd
2018-09-11 09:55:27 +01:00
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
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
Chris Ross (ASP.NET)
f38f60f8ce
Map ListenOptions.Protocols from IConfiguration #2903
2018-09-10 16:27:51 -07: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
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
Ryan Brandenburg
c5f1d5a3eb
Merge branch 'merge/release/2.2-to-master'
2018-09-10 15:14:41 -07:00
James Newton-King
6e27a04bf3
No HttpContext to route constraints in MvcEndpointDataSource ( #8436 )
2018-09-11 10:12:09 +12:00
BrennanConroy
399ac267ca
Cancel previous request on close ( #2923 )
2018-09-10 15:09:05 -07:00
John Luo
de5ccb5c78
PR feedback for https://github.com/aspnet/KestrelHttpServer/pull/2838
2018-09-10 13:58:46 -07:00
Ryan Brandenburg
14b1432481
Fix min.css files
2018-09-10 12:25:27 -07:00
BrennanConroy
adc5706bcb
Add more redis logs ( #2936 )
2018-09-10 11:51:27 -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
Andrew Stanton-Nurse
5092cc3115
Merge pull request #2929 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-09-07 19:19:27 -07:00
Pranav K
013697ad89
Remove experimental analyzers
2018-09-07 16:03:06 -07:00
Glenn Condron
4bcfbe4d40
[REPL] Help improvements for repl ( #478 )
...
* Beginning of help additions. Fixed a nullref.
* Standardized help with options displayed as appropriate.
2018-09-07 15:21:42 -07:00
Joni
72f7e52e1e
Remove blank line
2018-09-07 14:48:17 -07:00
Ben Adams
db99baac35
Don't capture AsyncLocals onto Timers ( #2904 )
2018-09-07 14:08:08 -07:00
Sebastian
d36dcca713
Handle IPv4ToIPv6 Mapped Addresses when checking known proxies/networks ( #359 )
...
* Un-Map IPv4-to-IPv6-Mapped ips before comparing to known proxies/networks. Addresses #358
* Checking both mapped and unmapped versions of IPv4toIPv6 ips. Addresses #358
* Confirm IPv4toIPv6 mapping/unmapping. Addresses #358
2018-09-07 14:02:31 -07:00
Nate McMaster
76eaf9c3b6
Merge branch 'release/2.2'
2018-09-07 10:21:16 -07:00
Nate McMaster
aa93edcee2
Remove Microsoft.DotNet.GlobalTools.Sdk
...
These targets are now part of Microsoft.NET.Sdk
2018-09-07 10:01:52 -07:00
gqqnbig
fd80509fef
LocalizedHtmlString.Value doesn't include arguments ( #8376 )
...
* Clarify that Value is prior to formatting with any constructor arguments
2018-09-07 08:58:52 -07:00
Andrii Kurdiumov
6546c55f4c
Removal of global.json from the template
...
I remove only global.json from the template, and leave global.json in the repository root, since it is required for the build.
See #1324
2018-09-07 12:44:52 +01:00
David Fowler
5543d29af1
Merge branch 'release/2.2' => 'master'
2018-09-07 01:29:38 -07:00
Nate McMaster
6fb4de5962
Merge branch 'release/2.2'
2018-09-06 23:05:08 -07:00
Nate McMaster
e3ba165baa
Update build.ps1
2018-09-06 23:04:43 -07:00
James Newton-King
27a0951a88
Update dependencies and re-mark obsolete constructor ( #783 )
2018-09-07 13:34:10 +12:00
Casey O'Brien
74ba9898f4
[ Fixes #8250 ] Improve the error message when TEntryPoint is not in an entry point assembly
...
Validates that the type used as a generic argument in WebApplicaitonFactory is contained within the entry point to assembly and throws InvalidOperationException otherwise
2018-09-06 18:02:21 -07:00
Pavel Krymets
2597a2e009
Merge QueryStatus and CreateHandler calls to make them atomic ( #1359 )
2018-09-06 15:42:18 -07:00
Ryan Brandenburg
f0e66325c3
Merge branch 'merge/release/2.2-to-master'
2018-09-06 15:21:29 -07:00
James Newton-King
863b1c2c97
Action endpoint metadata contains attributes from action and controller ( #8395 )
2018-09-07 10:01:40 +12:00
Ryan Nowak
d364a9e5af
Merge branch 'release/2.2'
2018-09-06 14:47:29 -07:00
Justin Kotalik
2cc108b2e1
Write wide strings to stdout; cleanup logging providers; test utf8 ( #1332 )
2018-09-06 11:57:00 -07:00
Simon Cropp
d3d7c55198
fix some spelling ( #2888 )
2018-09-06 11:48:25 -07:00
Ryan Brandenburg
c2f15f4199
Don't use depricated constructor
2018-09-06 11:39:34 -07:00
Justin Kotalik
1fca011674
Fix output location for lib files ( #1373 )
2018-09-06 10:32:49 -07:00
Pranav K
07cc9e66c6
Add a feature to disable file watching in Razor pages ( #8369 )
...
* Add a feature to disable file watching in Razor pages
Fixes https://github.com/aspnet/Mvc/issues/8362
2018-09-06 10:16:31 -07:00
Pavel Krymets
b1f0f173aa
Use ConnectionResetException with 'The client disconnected' message ( #1364 )
2018-09-06 10:10:07 -07:00
Chris Ross (ASP.NET)
b8e56691cb
Implement MaxRequestLineSize for HTTP/2 #2813
2018-09-06 10:01:28 -07:00
BrennanConroy
23154629a9
Merge branch 'release/2.2'
2018-09-06 09:41:00 -07:00
Chris Ross (ASP.NET)
384a518bda
Implement MaxRequestHeadersTotalSize for HTTP/2 #2812
2018-09-06 09:07:16 -07:00
David Fowler
edc1935475
Flow the cancellation tokens to ReadAsync and WriteAsync ( #2865 )
2018-09-06 09:04:39 -07:00
Daniel Roth
d81f04a5b0
Update doc comment for HttpRequest.Protocol ( #1013 )
2018-09-06 08:48:00 -07:00
Simon Cropp
cfb0d732b0
fix some spelling ( #1035 )
2018-09-06 08:46:34 -07:00
Nate McMaster
9941fb825f
Update TFM to .NET Core 3.0 ( #324 )
2018-09-06 08:23:55 -07:00
Simon Cropp
b156dee4f1
Fix some spelling ( #8378 )
2018-09-06 07:39:01 -07:00
Takaaki Suzuki
c0f3a46ffe
Don't call GetValidity method twice.
2018-09-06 07:33:48 -07:00
Ben Adams
e174d277bd
Inline
2018-09-05 20:53:06 -07:00
Ben Adams
337bc462de
Fast-path async in PagedBufferedTextWriter
2018-09-05 20:53:06 -07:00
Ryan Nowak
fabe189470
React to LinkGenerator changes
2018-09-05 20:52:37 -07:00
Ryan Nowak
e3b704095b
Revisions to LinkGenerator ( #770 )
...
* Revisions to LinkGenerator
* PR feedback
2018-09-05 20:52:09 -07:00
James Newton-King
aadc31d9a5
Merge release/2.2
2018-09-06 14:07:11 +12:00
James Newton-King
dcfb63a768
Avoid RoutePattern allocating empty dictionaries ( #772 )
2018-09-06 14:00:52 +12:00
James Newton-King
1c74973c6a
Minor matcher builder allocation optimization ( #771 )
2018-09-06 13:47:34 +12:00
James Newton-King
dbebdbecd6
Add flag for including label with DfaNodes ( #769 )
2018-09-06 13:38:17 +12:00
James Newton-King
fe8c633224
Optimize builder and HTTP policy allocations ( #768 )
2018-09-06 13:25:35 +12:00
James Newton-King
abc378d3dc
Avoid resizing large struct arrays ( #767 )
2018-09-06 13:10:17 +12:00
James Newton-King
0f5d471dfd
Create collections on DfaNode as needed ( #779 )
2018-09-06 12:58:57 +12:00
James Newton-King
a777a4cdd5
Reuse collections in DfaMatcherBuilder ( #778 )
2018-09-06 12:25:45 +12:00
Nate McMaster
63b7efc380
Merge branch 'release/2.2'
2018-09-05 17:25:17 -07:00
N. Taylor Mullen
e8f8727193
Merge branch 'release/2.2'
...
# Conflicts:
# build/dependencies.props
# korebuild-lock.txt
# version.props
2018-09-05 17:24:25 -07:00
N. Taylor Mullen
3a281b8f58
Allow TagHelpers to occur after unclosed C# blocks without assert failures.
...
- This scenario wasn't considered previously.
#2566
2018-09-05 17:22:17 -07:00
Mike Harder
71b7bb50b2
Ensure external processes are killed when test process exits ( #1371 )
...
- Prevents locked files when stop debugging unit test
- Addresses #1279
2018-09-05 17:21:59 -07:00
Pavel Krymets
88d8571474
Add Trace level for request events, allow logging to eventlog ( #1337 )
2018-09-05 17:15:04 -07:00
Hassan Hashemi
bca3160190
Remove redundant check
...
fixed https://github.com/aspnet/Mvc/issues/8374
2018-09-05 17:04:20 -07:00
Pavel Krymets
18a718d1f0
Catch all exception in native callbacks ( #1369 )
2018-09-05 16:48:10 -07:00
Pavel Krymets
613fbcc349
Enable code analysis on shim project ( #1361 )
2018-09-05 16:47:51 -07:00
Nate McMaster
e23e8fff95
Install MicroBuild code signing plugin and set SignType = real ( #1376 )
2018-09-05 12:50:34 -07:00
Steve Sanderson
facc1e466e
Pre-trim Mono BCL ( #1382 )
...
* Add "ilwipe" build command
* Perform BCL wipe as part of build
* Simplify by converting ilwipe command to process entire directories
* Clean up the build
2018-09-05 10:03:54 +01:00
James Newton-King
4ab067fb37
Temporarily remove obsolete attribute to unblock build ( #775 )
2018-09-05 09:27:46 +12:00
Justin Kotalik
1b87f1e913
Merge branch 'merge/release/2.1-to-release/2.2' into release/2.2
2018-09-04 14:10:35 -07:00
Chris Ross (ASP.NET)
991cfa8bd8
Remove limits on SETTINGS_HEADER_TABLE_SIZE #2874
2018-09-04 12:01:13 -07:00
Ryan Nowak
ca681138e3
Merge branch 'dotnet-maestro-bot-merge/release/2.2-to-master'
2018-09-03 11:43:23 -07:00
Steve Sanderson
b004ffdc24
Set BrowserHttpMessageHandler as the default handler when running on Mono WebAssembly
2018-09-03 17:47:05 +01:00
Steve Sanderson
38b45d82c7
Update linker config following update to Mono bfc35fc6e65
2018-09-03 17:47:05 +01:00
cores-system
223a2fed97
Don't intercept clicks for links that open in external frames #1352 ( #1354 )
2018-09-03 10:31:37 +01:00
Ryan Nowak
c97cb8c18b
Add support for Razor templates
...
Adds support for Razor templates and RenderFragment<T>.
Razor templates are a little-known Razor feature that looks like:
```
@<tag>....<tag>
```
It's so little known that it's not even covered in our docs, but it's
been around for many many years. This features hasn't been implemented
until now for Blazor, and this feature brings it back as a build
building block for templated components (more to come).
In Blazor land a template like:
```
@{ RenderFragment<Person> template = @<div>@item.Name</div>; }
```
complies to code like:
```
RenderFragment<Person> template = (__builder, item) =>
{
__builder.OpenElement(...);
...
__builder.CloseElement(...);
}
```
Since the declaration always has a generic type parameter inside, it
needs to be in a context where the type is known.. ie: not with `var`.
See tests for ways to consume templates.
NOTE: There are the following caveats for templates
- Templates require a single root element.
- Templates don't work in the `@functions { }` block
These limitations are baked into the core of Razor and will take a while
for us to address (v3.0).
2018-08-31 19:10:42 -07:00
Pavel Krymets
0459b6d0d4
Fix dotnet.exe abort exception and startup/shutdown timeouts ( #1352 )
2018-08-31 09:05:46 -07:00
Justin Kotalik
db01ae3717
Remove FreeConsole calls. ( #1358 )
2018-08-31 08:16:07 -07:00
Ryan Nowak
bf31749e9f
Merge pull request #475 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-08-30 17:06:50 -07:00
Nate McMaster
7520ffa0ef
Fix up service scoping in the EF Core xml repository and update package version to 2.2
2018-08-30 16:22:43 -07:00
John Luo
153020ef8a
Allow UTF8 encoded header values
2018-08-30 16:21:34 -07:00
Ryan Nowak
525fbf495b
Fix #468 - all UseHealthChecks without a path
2018-08-30 15:33:49 -07:00
Nate McMaster
2d4dd7251b
Merge branch 'release/2.2'
2018-08-30 15:29:49 -07:00
Nate McMaster
a6a21351b6
Merge branch 'release/2.1' into release/2.2
2018-08-30 15:28:26 -07:00
Javier Calvarro Nelson
f8181ef522
Merge branch 'release/2.2'
2018-08-30 15:24:32 -07:00
Javier Calvarro Nelson
bb1cd5ec09
Stop building dependent projects
2018-08-30 15:23:55 -07:00
Ryan Brandenburg
5f5524a477
Merge branch 'merge/release/2.2-to-master'
2018-08-30 15:23:14 -07:00
Pranav K
d8b7dbd1f3
Avoid null refs when IStatusCodeActionResult cannot be discovered
2018-08-30 15:17:09 -07:00
Ryan Nowak
945e798ca7
[Design] Set the endpoint feature only on success
2018-08-30 14:52:35 -07:00
Ryan Nowak
71d4a2e1f0
Merge pull request #760 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-08-30 14:46:40 -07:00
BrennanConroy
f42f4c56e6
Initialize HttpConnectionManager before registering callbacks ( #2878 )
2018-08-30 14:42:16 -07:00
Ben Adams
3dfa26f7e3
Resolve virtual ViewContext max once per method
2018-08-30 14:04:08 -07:00
Ryan Nowak
8395ad8340
remove references to ref emit packages
2018-08-30 13:26:22 -07:00
Justin Kotalik
729a98adfc
Call AllocConsole ( #1351 )
2018-08-30 12:20:53 -07:00
Justin Kotalik
e7f3c7c62e
Remove bad rc files ( #1355 )
2018-08-30 12:18:30 -07:00
Justin Kotalik
922298bc90
Add rc file as an include for ANCMV1 ( #1284 ) ( #1344 )
2018-08-30 12:00:13 -07:00
N. Taylor Mullen
4619d59828
Add IVT to Razor LanguageServer.
...
- `LanguageServer.StrongNamed` isn't a thing anymore.
2018-08-30 11:26:02 -07:00
Ryan Nowak
0001581ffc
Merge branch 'master' into merge/release/2.2-to-master
2018-08-30 11:25:57 -07:00
Pranav K
f90a47c5af
Introduce ProducesErrorResponseTypeAttribute
...
Fixes https://github.com/aspnet/Mvc/issues/8288
2018-08-30 11:24:03 -07:00
Pranav K
47d61ff5b3
Remove references to MvcPrecompilation package
2018-08-30 10:53:25 -07:00
Ryan Nowak
3e4a3d0b90
Allow health checks to use any DI lifetime ( #466 )
...
* Allow health checks to use any DI lifetime
This change allows registered IHealthCheck implementations to use any DI
lifetime. This is necessary for scenarios like using EF which requires a
scope.
The works by having the health check service create a scope for each
time it queries health checks. This scope does not overlap or share
state with other scopes (the request scope) so there is no crosstalk
between processing going on per-request in ASP.NET Core and the health
check operation.
* PR feedback and some logging cleanup
2018-08-30 10:51:48 -07:00
Steve Sanderson
ae7b7c2663
Update NodeServices/SpaServices/NodeServices.Sockets to build using latest TypeScript and Webpack ( #1748 )
2018-08-30 07:51:56 +01:00
Ryan Nowak
9bc84cec8c
Merge pull request #757 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-08-29 21:32:44 -07:00
James Newton-King
927e7c8bfc
Support route data tokens with Endpoint Routing ( #8360 )
2018-08-30 15:14:34 +12:00
Ryan Nowak
8d053853bb
Address PR feedback, I hit merge too soon.
2018-08-29 19:46:25 -07:00
Ryan Nowak
3511c8cef0
Add vectorized il-emit trie jump table
...
Add new futuristic jump table. Remove old experimental jump tables since
this is much much better.
2018-08-29 19:30:02 -07:00
Kristian Hellang
ffdbea9dc1
Add analyzer support for status code methods and constructors
2018-08-29 18:23:52 -07:00
Ben Adams
2a426dfea5
Make ViewBuffer methods more inlinable ( #8339 )
...
* Make ViewBuffer methods more inlinable
2018-08-29 17:07:45 -07:00
Ryan Brandenburg
afccb085a2
Fix links and formating
2018-08-29 16:22:42 -07:00
Ben Adams
22a40b6f2b
Use Pages as List
2018-08-29 16:18:25 -07:00
Ben Adams
7bd9f9cc3e
Reduce IList interface calls
2018-08-29 16:18:25 -07:00
Pavel Krymets
26710080fe
Set AspNetCoreHostingModel in templates ( #716 )
2018-08-29 16:08:58 -07:00
Pranav K
82a01a414d
Set trace id in ProblemDetalsClientErrorFactory
2018-08-29 16:03:08 -07:00
N. Taylor Mullen
b8ff40fbbd
Merge remote-tracking branch 'origin/release/2.2'
2018-08-29 16:00:27 -07:00
N. Taylor Mullen
852ad8df87
Allow content to be written after caught exception from child TagHelper.
...
- The issue was that the `executeChildContentAsync` call was stopping the invocation of the `_endTagHelperWritingScope`. Therefore, we'd never finish the TagHelper content scope and all following content would be ignored.
- Added two tests to validate the new functionality.
#2561
2018-08-29 16:00:15 -07:00
Hao Kung
fcc02103aa
Merge pull request #1947 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-08-29 15:39:43 -07:00
Ryan Brandenburg
75fa0cd6e8
Remove SpaServices where they're un-needed
2018-08-29 15:24:12 -07:00
Ryan Brandenburg
ccb2c006aa
Merge branch 'merge/release/2.1-to-release/2.2' into release/2.2
2018-08-29 15:21:15 -07:00
Hao Kung
e38a307307
Allow cookie validation when stores don't support security stamp ( #1941 )
2018-08-29 14:41:51 -07:00
dan.s.ward
8f7d995508
Added Entity Framework Core backed IXmlRepository with tests and sample ( #303 )
2018-08-29 14:04:37 -07:00
James Newton-King
b649133eec
Refactor KnownRouteValueConstraint to not require HttpContext ( #8352 )
2018-08-30 08:57:53 +12:00
Nate McMaster
cf3d2f1299
Minor tweaks to meta-package descriptions ( #1343 )
...
Per feedback on #1320 which came in post-merge.
2018-08-29 12:03:24 -07:00
Patrick Westerhoff
208f6ff568
Fix #574 : Set NoDefaultLaunchSettingsFile
...
When a project is created with ExcludeLaunchSettings enabled, set the
NoDefaultLaunchSettingsFile property to prevent Visual Studio from
creating a launchSettings.json.
2018-08-29 11:35:16 -07:00
Chris Ray
2eaa17f561
include credentials when fetching blazor.boot.json to enable windows auth ( #1200 )
2018-08-29 11:11:27 +01:00
Steve Sanderson
cf59ed94ad
Consume jsinterop from submodule ( #1351 )
...
* Remove JSInterop files from this repo
* Add jsinterop submodule
* In Blazor.sln, reference jsinterop projects from submodule
* Update other references to jsinterop
* Fix TypeScript warning
* Include submodules in test/pack
* Update to newer jsinterop to fix JS pack issue
* Update to newer jsinterop to obtain strong naming
* Allow jsinterop submodule to inherit Directory.Build.props/targets
* Get latest jsinterop
* For AppVeyor builds, restore git submodules (happens automatically elsewhere)
* Update README.md with instructions to restore submodules
2018-08-29 11:10:35 +01:00
James Newton-King
e73601dda9
Move core endpoint types to HttpAbstractions ( #703 )
2018-08-29 17:07:35 +12:00
James Newton-King
05a581a132
Copy core endpoint routing types to HttpAbstractions ( #1030 )
2018-08-29 17:07:16 +12:00
James Newton-King
2d8b187ca0
Merge branch 'merge/release/2.2-to-master'
2018-08-29 15:55:56 +12:00
James Newton-King
99c4f2f36a
Support policy arguments and resolving services by constructors ( #753 )
2018-08-29 14:51:34 +12:00
Alfred Myers
2246c6b55b
Fixed comment and log message for ForwardedHeadersMiddleware ( #357 )
...
- Updated comment to reflect the addition of RequireHeaderSymmetry
- Fixed header name on log message
2018-08-28 19:01:51 -07:00
Pranav K
d09c3c9e28
Polish ProblemDetails
...
* Add ability to set extended members on ProblemDetails
* Skip empty valued properties when serializing ProblemDetails
Fixes #8296
Fixes #8317
2018-08-28 16:21:39 -07:00
Gert Driesen
1a43e67542
Remove workaround for dotnet/corefx#24562 ( #2863 )
...
This issue caused a bind to a recently used endpoint to fail on macOS and Linux.
Addresses #2820
2018-08-28 15:59:17 -07:00
Mike Lorbetske
c3c634aa1e
Update Repl project to target 3.0
2018-08-28 15:12:16 -07:00
Mike Lorbetske
9a0ab9df63
Update HttpRepl project to target 3.0
2018-08-28 15:11:46 -07:00
Mike Lorbetske
85b22edb6a
Merge branch 'master' into merge/release/2.2-to-master
2018-08-28 14:08:12 -07:00
Ajay Bhargav Baaskaran
9e4c4079f2
Renamed HtmlTextSyntax to HtmlTextLiteralSyntax for consistency ( #2560 )
...
* Renamed HtmlTextSyntax to HtmlTextLiteralSyntax for consistency
* Generated baselines
2018-08-28 14:00:32 -07:00
Pranav K
667ad4daff
Use ClientErrorData to configure ClientErrorResultFilter
...
Fixes #8289
2018-08-28 13:35:32 -07:00
Massimiliano Donini
17d72c2b94
Fix msbuild targets to correctly copy deps.json
2018-08-28 13:32:48 -07:00
Ryan Nowak
96b77c8663
Fix aspnet/Routing#721
2018-08-28 12:26:13 -07:00
Stephen Halter
5ea537fbc4
Don't advance examined in Http1MessageBody.PumpAsync for canceled reads ( #2847 )
2018-08-28 11:28:17 -07:00
Nate McMaster
f8f2ee8202
Merge branch 'release/2.2'
2018-08-28 10:59:06 -07:00
Stephen Halter
89f4850883
Avoid throwing the same exception instances in parallel ( #2859 )
2018-08-28 10:56:46 -07:00
Nate McMaster
5f89835420
Merge branch 'release/2.1' into release/2.2
2018-08-28 10:33:12 -07:00
Nate McMaster
afa93f1852
Merge branch 'release/2.1' into release/2.2
2018-08-28 10:14:24 -07:00
BrennanConroy
04c606d55f
LongPolling: Setting connection to inactive while there is still an active poll ( #2769 )
2018-08-28 09:44:50 -07:00
Ryan Brandenburg
9c28f95b12
Add Microsoft.AspNetCore.Razor.Design to templates ( #674 )
2018-08-28 09:41:15 -07:00
Justin Kotalik
037482829d
Add commit hash to V1 description ( #1281 )
2018-08-28 09:36:21 -07:00
Justin Kotalik
5f20f2a2dd
Update schema for ANCMv1 ( #1276 )
2018-08-28 09:35:49 -07:00
Justin Kotalik
cc26d973ba
Remove early dereference of ASPNETCORE_PORT env var ( #1274 )
2018-08-28 09:34:54 -07:00
Justin Kotalik
338af6f07d
Reduce probability of startup port collisions ( #1273 )
2018-08-28 09:34:10 -07:00
David Fowler
6dc55a0462
Don't preserve the ExecutionContext when dispatching callbacks ( #2861 )
...
* Don't preserve the ExecutionContext when dispatching callbacks
- The layers up stack already preserve and restore the ExecutionContext, there's no need to capture and run for the scheduler callback and cancellation token callback
2018-08-28 09:32:33 -07:00
Nate McMaster
42fa04aa87
Add the latest version of Microsoft.AspNetCore.Razor.Design to the offline package cache ( #1316 )
2018-08-28 09:19:56 -07:00
Nate McMaster
6b1d22c581
Add package descriptions for Microsoft.AspNetCore.{App, All} ( #1320 )
2018-08-28 09:19:37 -07:00
Nate McMaster
b206d59612
Prepare 2.1.5 patch
2018-08-28 09:14:43 -07:00
Ryan Nowak
0fcf2448c3
Fix aspnet/Routing#722
...
Exposes a separate change token that will be triggered after action
descriptors have been updated.
2018-08-27 17:24:21 -07:00
Justin Kotalik
2605b943f3
Use only one log file for stdout ( #1334 )
2018-08-27 16:50:16 -07:00
James Newton-King
8ed9d0aac2
Use Endpoint instead of RouteEndpoint where possible ( #8331 )
2018-08-28 11:00:11 +12:00
Ryan Nowak
cb0627b28a
Addressing a skipped test
...
I think something that was meant to be revisited in a PR got left
behing. I found this while fixing aspnet/Routing#772 and it seems worth
addressing.
This change removes the hardcoding of action/controller/area in the
data source, and corrects the behavior of required route values when
they aren't in that set.
2018-08-27 15:34:37 -07:00
David Fowler
04b365a22f
Don't hold onto the HttpContext in the HostingLogScope ( #1531 )
...
- Multiple things capture the ExecutionContext, reduce the changes of improperly rooting the HttpContext when we only need a few properties from the request.
2018-08-27 11:59:56 -07:00
Stephen Halter
f70ba53253
Fix race when SystemClock is accessed before first heartbeat ( #2851 )
2018-08-27 10:59:29 -07:00
Alfred Myers
c9a4ee8b71
Change List<Action> to Action ( #1480 )
2018-08-27 10:33:05 -07:00
Matt Ward
9652fbd2b4
Fix default None items not being removed from ClientApp directory
...
Content MSBuild items from the ClientApp directory are removed from
the project using an MSBuild and then all files are added as None
items. None items that were added by the .NET Core SDK default MSBuild
items were not being removed from the ClientApp directory. This
resulted in duplicate files shown in Visual Studio for Mac. This
affected all the SPA project templates.
Fixes #559
2018-08-27 09:59:00 -07:00
Ryan Brandenburg
a3b20c57ea
Add appsettings.json to EmptyWeb
2018-08-27 09:52:47 -07:00
Pavel Krymets
9b68c5ce89
Add tests for processpath and arguments ( #1331 )
2018-08-24 22:20:28 -07:00
Pavel Krymets
6ddbfb64b9
Improve configuration file handling logic ( #1317 )
2018-08-24 20:20:26 -07:00
Javier Calvarro Nelson
e03129e3ba
Merge branch 'release/2.2'
2018-08-24 17:20:58 -07:00
Justin Kotalik
2cbf5bd84e
Query event logs when verifying event log messages. ( #1323 )
2018-08-24 16:02:04 -07:00
Ajay Bhargav Baaskaran
f4808b50b5
Renamed WhiteSpace to Whitespace
2018-08-24 15:45:55 -07:00
Pranav K
a7301120b1
Unwrap filter factories in TypeFilterAttribute & ServiceFilterAttribute
...
Fixes #7855
2018-08-24 14:15:40 -07:00
John Luo
64127e6c76
Implement MaxFrameSize and HeaderTableSize for HTTP/2
2018-08-24 11:07:41 -07:00
David Fowler
d318d7b94d
Make tests less flaky ( #2848 )
...
- Re-order logs with completing the task
2018-08-23 22:29:56 -07:00
Stephen Halter
fc3c2eef5e
Handle SocketError.ProtocolType as a connection reset on macOS ( #2845 )
...
* Handle SocketError.ProtocolType as a connection reset on macOS
* Make IsConnectionResetError and IsConnectionAbortError stricter
2018-08-23 19:16:44 -07:00
Stephen Halter
e5a1101239
Improve exception handling in SocketConnection ( #2844 )
...
- Avoid race where a connection reset observed by both DoSend() and DoReceive()
resulted in a ConnectionAbortedException being thrown from the input Pipe
instead of a ConnectionResetException.
2018-08-23 16:59:02 -07:00
Javier Calvarro Nelson
dfb579d45c
[ Fixes #8021 ] Copy the request headers before sending the request on the RedirectHandler
...
If another handler modifies the request headers the modified headers get
applied on subsequent requests, which is not correct. This change copies
the headers before sending the request and uses the original headers for
the redirect request instead of the potentially modified ones.
2018-08-23 16:09:05 -07:00
Javier Calvarro Nelson
b3a6bda45a
Sync Identity UI default layout with the templates layout
2018-08-23 15:15:54 -07:00
James Newton-King
dd1dcaebee
Merge branch 'merge/release/2.2-to-master'
2018-08-24 09:52:47 +12:00
James Newton-King
40fb13a021
Fix DfaMatcher to work with non-RouteEndpoint ( #739 )
2018-08-24 09:11:13 +12:00
Justin Kotalik
1d4d882c0d
Spelling mistake in debug log
2018-08-23 13:45:10 -07:00
Ryan Brandenburg
3570f1a2b1
Merge branch 'merge/release/2.2-to-master'
2018-08-23 10:32:20 -07:00
Pranav K
8eea0ad44c
Update tests to latest compat switch
2018-08-23 08:09:02 -07:00
dotnet-maestro-bot
90d8f96b3f
Change RoutePattern to not throw when inline and arg default value are the same ( #747 ) ( #748 )
2018-08-23 23:17:14 +12:00
James Newton-King
e2de54a92d
Update MvcEndpointDataSource to use RoutePattern ( #8249 )
2018-08-23 21:42:42 +12:00
James Newton-King
15e46ad323
Change RoutePattern to not throw when inline and arg default value are the same ( #747 )
2018-08-23 21:39:23 +12:00
Ryan Nowak
61c5f2bad4
Merge pull request #746 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-08-22 20:38:02 -07:00
David Fowler
68a0863524
General connection management ( #2834 )
...
This change makes the handling of graceful shutdown work for more than just http scenarios. This should allow us to move TLS further out and should also allow us to start moving things to connection middleware instead of connection adapters.
Summary of the things changed/added:
- Added IConnectionLifetimeNotificationFeature that represents an attempt to gracefully close the connection that isn't being aborted. This feels pretty awful but we may have to do it.
- Moved connection management to the ConnectionDispatcher and out of the HttpConnectionMiddleware
- Removed Http from the names of the ConnectionManager and Heartbeat
2018-08-22 20:35:28 -07:00
Ryan Nowak
a0aa61fd10
Improvements for IEndpointSelectorPolicy
...
These changes are based on our discussion earlier this week. Adding
async, and making it possible to short circuit, which should be better
aligned with the requirments of versioning.
2018-08-22 19:26:13 -07:00
Ryan Nowak
3370113a05
Move ITagHelper to another assembly
2018-08-22 17:46:48 -07:00
Justin Kotalik
3b3f128306
Enable app verifier on VSTS; Fix debug log handle use ( #1291 )
2018-08-22 15:39:59 -07:00
James Newton-King
03da30f3bf
Replace remaining references to global routing ( #8312 )
2018-08-23 10:23:29 +12:00
BrennanConroy
9d4c76c173
Merge pull request #2850 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-08-22 13:49:05 -07:00
Javier Calvarro Nelson
de0932961b
Default Identity UI to Bootstrap4
2018-08-22 13:40:38 -07:00
Javier Calvarro Nelson
110d835434
Fix layout and login partial issues
2018-08-22 13:33:01 -07:00
Javier Calvarro Nelson
3ed89516ba
Update precedence for 2.2 templates
2018-08-22 13:31:59 -07:00
Pavel Krymets
eebbb6a602
Support portable.exe apps and better error reporting ( #1287 )
2018-08-22 12:04:04 -07:00
Ryan Brandenburg
11c6ebea2e
Add comments regarding HSTS max age
2018-08-22 11:45:56 -07:00
Ryan Brandenburg
d9e71527e8
Fix copyright year
2018-08-22 11:44:46 -07:00
BrennanConroy
f8a46faf9d
Detect ASP.NET SignalR server connection attempt ( #2820 )
2018-08-22 11:17:04 -07:00
BrennanConroy
db3f3f2a53
Tweak some Redis log levels ( #2838 )
2018-08-22 10:35:43 -07:00
Pavel Krymets
36e5aceb3c
Serve 503 if server process is shutting down ( #1293 )
2018-08-22 09:53:25 -07:00
Pavel Krymets
e26231b613
Cleanup application manager ( #1250 )
2018-08-22 08:23:40 -07:00
Ryan Nowak
692bb0e261
Add privateassets=all to Blazor.Build usages
...
We recommend using this package with PrivateAssets=all everywhere to
make sure that the MSBuild files brought in by this package aren't
applied to transitively.
When that happens, the Blazor.Build MSBuild files will take over the
Razor functionality for other projects, which breaks MVC's view
compilation functionality.
This is part of a fix for #1216 .
2018-08-22 08:21:46 -07:00
Steve Sanderson
13cf5bd583
Add Blazor.onServerConnectionClose to fix #1339
...
This API will be removed once we implement proper connection management (reconnects, etc.)
2018-08-22 15:18:23 +01:00
Steve Sanderson
1089eecbfc
In RenderBatchWriter, deduplicate strings only when safe to do so ( #1340 )
...
We allow deduplication of HTML element and attribute names, plus whitespace text nodes / attribute values.
2018-08-22 14:52:35 +01:00
James Newton-King
5e8e490867
Merge fixes
2018-08-22 20:42:53 +12:00
James Newton-King
aff4a38865
Merge release/2.2
2018-08-22 20:37:21 +12:00
James Newton-King
1680b9f4fc
Change endpoint invoker to RequestDelegate, Endpoint/EndpointMetadataCollection namespaces, split out IRouteValuesFeature ( #712 )
2018-08-22 17:15:57 +12:00
James Newton-King
cbe1526763
React to routing changes ( #8303 )
2018-08-22 17:15:09 +12:00
James Newton-King
a15f213e43
Merge branch 'merge/release/2.2-to-master'
2018-08-22 15:58:38 +12:00
James Newton-King
08a0a7fadb
Remove MatchProcessor, add IParameterPolicy ( #734 )
2018-08-22 15:24:34 +12:00
David Fowler
0b471f2b2f
Sockets: do 0 byte reads to avoid allocating memory for idle connections
...
- Do not do 0 byte reads on OSX due to potential sockets bug
2018-08-21 18:07:15 -07:00
Javier Calvarro Nelson
ac744d8adb
Support Bootstrap 3 and Bootstrap 4 on idenity UI
2018-08-21 17:46:13 -07:00
Pranav K
5bd818bd64
Introduce ProblemDetailsFilter
...
Fixes https://github.com/aspnet/Mvc/issues/6786
2018-08-21 17:29:12 -07:00
James Newton-King
8b0a598a64
Merge branch 'merge/release/2.2-to-master'
2018-08-22 10:48:44 +12:00
Justin Kotalik
e23d9cb4ac
Fix a few leaked handles ( #1260 )
2018-08-21 15:45:42 -07:00
Nate McMaster
3a2606a636
Strong name Blazor assemblies ( #1344 )
2018-08-21 15:37:05 -07:00
James Newton-King
4f33362ab5
Minor RVD and EndpointMetadataCollection refactors ( #708 )
2018-08-22 10:30:25 +12:00
James Newton-King
967afc3b0f
Optimize RoutePattern allocations ( #706 )
2018-08-22 10:01:52 +12:00
James Newton-King
b658d90785
Merge release/2.2
2018-08-22 09:57:19 +12:00
Ajay Bhargav Baaskaran
27a9991f21
Auto generate CSharp syntax tree nodes ( #2550 )
...
* Auto generate CSharp syntax tree nodes
- Auto generated syntax nodes, visitors and factories
- Renamed RazorComment to RazorCommentLiteral to avoid a conflict
- Modified the Visit() contract
- Added new SyntaxKinds
- Regenerated baselines
2018-08-21 14:20:33 -07:00
Justin Kotalik
9ccd3addc3
Synchronizes copyrights between V1 and V2. ( #1283 )
2018-08-21 14:13:33 -07:00
Justin Kotalik
135da118d1
Add rc file as an include for ANCMV1 ( #1284 )
2018-08-21 14:12:15 -07:00
Pavel Krymets
26964b2687
Macrosify out-of-proc ( #1268 )
2018-08-21 14:11:34 -07:00
Justin Kotalik
2778570f0b
Redirect native logs into stdout and pipe ( #1154 )
2018-08-21 14:03:26 -07:00
Mike Harder
2d61889e5e
Support empty value for ASPNETCORE_PORT ( #1280 )
...
- Addresses #1264
2018-08-21 13:44:34 -07:00
Steve Sanderson
52813ddf63
Eliminate temporary MemoryStream buffers used during RenderBatch serialization ( #1329 )
...
* Eliminate temporary MemoryStream buffers used during RenderBatch serialization. Fixes #1132
* CR: Fix namespace
2018-08-21 14:08:39 +01:00
Nate McMaster
eaf0d25731
Update ANCM to build installers from the master branch
2018-08-20 20:12:36 -07:00
Nate McMaster
da48de7d75
Merge branch 'release/2.2'
2018-08-20 19:13:05 -07:00
Nate McMaster
28d4064cba
Add a build definition for compiling Universe in VSTS
2018-08-20 16:02:43 -07:00
Nate McMaster
b67a141263
Add code for building the Windows Hosting Bundle and ASP.NET Core runtime installers into this repo
...
This code previously was in private repos because it had references to internal locations and drop shares. This code has been modified to remove these internal-only pieces.
2018-08-20 15:56:22 -07:00
Mike Harder
6da64c6d55
Fix process start error message ( #1267 )
...
- Addresses #1261
2018-08-20 14:13:55 -07:00
Mike Harder
de32a08ae7
Fix typo in process start error message ( #1266 )
2018-08-20 14:11:51 -07:00
Mike Harder
cc4bbd1cef
Fix typos in portsetup error message ( #1265 )
2018-08-20 14:11:18 -07:00
Nate McMaster
0cb8c76c66
Merge branch 'release/2.2'
2018-08-20 08:29:15 -07:00
Nate McMaster
86b7d5162a
Merge branch 'release/2.1' into release/2.2
2018-08-20 08:28:58 -07:00
Nate McMaster
80aa7fe937
Merge branch 'release/2.2'
2018-08-20 08:27:50 -07:00
Christer van der Meeren
e85c36fa8c
Clarify CORS policy result log messages ( #177 )
...
Fixes https://github.com/aspnet/Home/issues/3419
2018-08-20 08:25:45 -07:00
John Luo
6f7a841374
Fire OnStreamCompleted after all pipes are closed
2018-08-17 17:45:47 -07:00
Justin Kotalik
a1e8b3a9af
Free environment variable table in inprocess application ( #1254 )
2018-08-17 16:29:30 -07:00
Chris Ross (ASP.NET)
aa9dde2457
Extract bitshift helper code, Frame cleanup #2773
2018-08-17 15:48:16 -07:00
Hao Kung
0682c1309f
Merge pull request #1927 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-08-17 15:41:59 -07:00
Nate McMaster
84d4627b8b
Upgrade build tools to use the 2.1.400 SDK ( #1249 )
2018-08-17 15:23:18 -07:00
Justin Kotalik
5fc59b2331
Free ALLOC_CACHE_HANDLER on dll unload ( #1253 )
2018-08-17 14:26:53 -07:00
Hao Kung
d040dabc03
Allow QR AuthenticatorIssuer to be configurable
2018-08-17 12:56:49 -07:00
Hao Kung
1d7a410832
Merge pull request #1869 from tincann/patch-1
...
Fix misleading exception message when adding a TokenProvider
2018-08-17 12:35:45 -07:00
Nate McMaster
b4538831b7
Add package descriptions for Microsoft.AspNetCore.{App, All}
2018-08-17 12:06:25 -07:00
Nate McMaster
16164689dc
Update documentation on the various package archive formats ( #1324 )
2018-08-17 10:42:26 -07:00
Daniel Roth
7a763fc4f6
Scan only declared methods for JS interop ( #1320 )
...
* Scan only declared methods for JS interop
* Add DotNetDispatcher test for JS invokable method on base class
2018-08-17 12:35:24 +01:00
Ajay Bhargav Baaskaran
db2a142132
Updated the tokenizer and parser to operate on SyntaxTokens directly ( #2540 )
...
* Updated the tokenizer and parser to operate on SyntaxTokens directly
- The tokenizer and parser now operates directly on SyntaxTokens (Green)
- The SyntaxToken(Red) is now created when the Span is built with the correct parent and position
- All other passes that run after the parsing is complete(TagHelperRewriter etc) will operate on the Red tokens.
- There is now only one type for all SyntaxTokens. They are differentiated by their SyntaxKind.
- Added equivalence checking for tokens
- Updated test code to react
- Regenerated baselines
2018-08-16 16:11:01 -07:00
Kiran Challa
731767837a
Introducing new **catchAll parameter to allow generating links with unencoded values
2018-08-16 15:52:09 -07:00
Pranav K
522006d2c8
[Design] Add a MaxValidationDepth option to ValidationVisitor
...
Fixes #7357
2018-08-16 15:01:18 -07:00
Hao Kung
39298e8aeb
Merge branch 'release/2.2' into master
2018-08-16 13:59:50 -07:00
Thomas Levesque
373a9c5eb2
Update default UI and samples to use provider display name
2018-08-16 13:40:10 -07:00
Thomas Levesque
fec946759c
Fix SignInManager to return correct external provider display name
2018-08-16 13:38:23 -07:00
Wilson
87cfd540ce
Fixed documentation typo ( #1862 )
...
Corrected a typo on the XML documentation of the UserId property that made it read "... sets the of the ..."
2018-08-16 13:38:09 -07:00
Ryan Nowak
2b4df294d6
Merge pull request #726 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-08-16 09:52:51 -07:00
David Fowler
83488886e0
Clean up some remants of the past ( #2827 )
...
- Remove Application from HttpConnectionContext and Http*ConnectionContext (it's no longer required)
2018-08-15 23:41:32 -07:00
Ryan Nowak
730646c301
Perf for EMC
2018-08-15 22:08:58 -07:00
Ryan Nowak
4fa0b068b8
Fix #710 - add support for data tokens
2018-08-15 21:43:50 -07:00
Ryan Nowak
97f54c532b
Support supression of matching for endpoints
2018-08-15 21:36:08 -07:00
Stephen Halter
5becb72107
Improve test logs ( #2826 )
...
- Include hosting logs in some tests that where previously missing them
- Prevent duplicate logs from Mock CallBase an CompositeKestrelTrace
- Log ports used by transport functional tests
- Add file logging to HTTP/2 "unit" tests
2018-08-15 18:31:56 -07:00
Pavel Krymets
6440545c4a
Add hosting model switch tests ( #1245 )
2018-08-15 16:47:47 -07:00
Chris Ross (ASP.NET)
0c2923135b
Limit concurrent HTTP/2 Streams per connection #2815
2018-08-15 15:58:57 -07:00
Ryan Nowak
ad44deedee
Merge pull request #718 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-08-15 15:23:49 -07:00
Pavel Krymets
60ca38ab56
Fix deployment parameters override ( #1241 )
2018-08-15 12:15:21 -07:00
Ryan Nowak
085a0b808e
Use RoutePattern in TemplateBinder
2018-08-15 12:12:52 -07:00
Pranav K
af770ede87
Ignore parameters that specify a model binder type
2018-08-15 12:12:04 -07:00
Ryan Brandenburg
200a70bb86
Update doc comments
2018-08-15 11:42:50 -07:00
Ryan Nowak
13e13d7632
Add generated documents to workspace
2018-08-15 10:54:32 -07:00
Steve Sanderson
04427d2e28
Fix publishing following recent build changes (now that $(OutDir) is relative)
2018-08-15 13:55:54 +01:00
Ryan Nowak
104f9c3517
Merge branch 'master' into merge/release/2.2-to-master
2018-08-14 17:03:36 -07:00
Mike Harder
1328162052
Remove early dereference of ASPNETCORE_PORT env var ( #1225 )
...
- Addresses #1119
- Includes workaround for #1237
2018-08-14 16:53:13 -07:00
Pranav K
7e25d7908a
Warn when the parameter name for a model bound complex parameter has the same name as a top level property
...
Fixes #7753
2018-08-14 15:44:48 -07:00
Ryan Nowak
e09b88ebd6
Tokenize Less
2018-08-14 15:31:38 -07:00
Pavel Krymets
1104564797
Throw when web config action is added without publish ( #1234 )
2018-08-14 15:08:20 -07:00
Justin Kotalik
0d91dde270
Dynamically link ucrt for release builds ( #1230 )
2018-08-14 12:32:39 -07:00
Pavel Krymets
8dbe564263
Add commit hash to V1 description ( #1229 )
2018-08-14 12:24:49 -07:00
kishanAnem
5e20c313d9
Array or List in query string does not get parsed #7712 ( #7967 )
...
- exclude collections when detecting complex types in `ApiBehaviorApplicationModelProvider`
- add test cases
2018-08-14 12:06:27 -07:00
N. Taylor Mullen
eec42e9a31
Merge branch 'release/2.2'
...
# Conflicts:
# build/dependencies.props
# korebuild-lock.txt
2018-08-14 11:23:31 -07:00
Marcin Burak
04e58d6ee4
Changed /* */ style comments to // style comments
2018-08-14 11:21:51 -07:00
Ryan Brandenburg
07b97e2f89
Merge branch 'merge/release/2.2-to-master'
2018-08-14 09:50:10 -07:00
Ryan Brandenburg
a431f8efa1
Don't publish too much of ClientApp ( #672 )
...
* Don't publish too much of ClientApp
* Fix scripts and remove extra publish items
2018-08-13 16:21:50 -07:00
Kristian Hellang
2421ae8c83
Add IStatusCodeActionResult ( #8265 )
...
* Add IStatusCodeActionResult
* Add unit test for explicitly implemented property on StatusCodeResult
2018-08-13 15:39:20 -07:00
Ryan Nowak
585e6cd3fe
Introduces a 'formatter' for formatting the IR
...
The new Formatter is used in debugger display, to resolve #2264
The next iteration (assuming we like this) will be to replat our testing
baseline infrastructure on top of this, and then start sharing that with
Blazor - related to #2265 .
I found when implementing debugger display that I was duplicating a lot
of details between testing and this.
I also want to convert the Blazor tests to use shared infrastructure.
Right now the Blazor tests use a modified version of the Razor
infrastructure that has different features.
2018-08-13 13:09:49 -07:00
Pavel Krymets
d725972355
Start adding configuration reload tests ( #1212 )
2018-08-13 13:02:57 -07:00
Chris Ross (ASP.NET)
43398482a5
Implement MaxRequestBodySize for HTTP/2 #2810
2018-08-13 12:06:21 -07:00
Stephen Halter
cd6de2fa18
Improve HTTP/2 stream abort logic ( #2819 )
...
- Fix race where headers frame could be written after an abort was observed
- Fix Http2StreamTests to verify expected abort-related exceptions
2018-08-13 11:45:17 -07:00
Ajay Bhargav Baaskaran
9a9931d59f
Initial infrastrucure for a better html parser ( #2522 )
...
Initial infrastrucure for a better html parser
- Added new syntax node types that follow Roslyn's red/green pattern
- Modified the html text node in the current syntax tree to use the new
nodes
- Updated test infrastructure
- Generated baselines
2018-08-13 11:26:24 -07:00
Ryan Nowak
fd5426943f
Merge sibling nodes during markup block rewrite
...
This change adds the ability to merge sibling nodes when possible during
markup block rewriting. We retain that invariant that each markup block
is a valid chunk of markup containing properly nested tags.
We still haven't done any work to remove whitespace yet, so most of the
cases where this comes into play right now will merge an element with
its surrounding whitespace.
2018-08-13 11:17:11 -07:00
Pavel Krymets
f1c1f82e8b
Fix is_regular_file again ( #1218 )
2018-08-13 10:32:39 -07:00
Pavel Krymets
36add746d7
General cleanup
2018-08-13 08:51:03 -07:00
Ryan Nowak
a05cb42845
Reenable markup blocks ( #1286 )
...
* Reenable HtmlBlock unit tests
* Add E2E tests for HTML Block cases
* Remove harded GenerateBaselines=true
* Fix #1193
This commit addresses the root cause of #1193 . When we merge HTML
text nodes into HTML blocks we need to re-encode any HTML entities that
were encoded eariler.
I did a bit of a deep dive on how HTML encoding is handled in Blazor and
I think this is the best strategy. I think it's valuable that the
BrowserRenderer uses document.createTextNode, which will always encode
the text - this handles dynamic content. We want to keep this in place
to avoid HTML injection attacks.
* Fix #1265 Reenable MarkupBlock
* test cleanup
2018-08-10 16:29:39 -07:00
N. Taylor Mullen
220595393a
Expose RazorCompletionFactsService.
2018-08-10 14:52:39 -07:00
Pavel Krymets
a8be2bf25b
Add common retry helper for SeverManager ( #1207 )
2018-08-10 14:52:29 -07:00
Artak
692e09b017
Fixes #2491 : Treating RazorCommentTransition-s similar to Transitions in tag content ( #2531 )
...
* Treating RazorCommentTransition-s similar to Transitions in tag content
2018-08-10 14:46:58 -07:00
N. Taylor Mullen
572b55690d
Refactor completion logic into standalone service.
...
- Migrated the completion item source provider and the legacy directive completion provider to use the new service.
- Cleaned up duplicate tests that were both verifying common completion functionality.
- Ensured that the legacy `RazorDirectiveCompletionProvider` did not result in additional Razor assembly loads when in C# scenarios.
#2530
2018-08-10 14:46:13 -07:00
Ryan Brandenburg
b029f79b4d
Import styles in correct order ( #668 )
...
In the `angular-cli.json` file, the styles.css file should be imported last in the styles section, so the developer can override styles from third party libraries (bootstrap, in this case).
2018-08-10 14:45:12 -07:00
N. Taylor Mullen
aec88e3eba
Change Razor directive completions to use new completions API.
...
- Kept the same behavior as we previously had with Razor directive completions.
- Attempted adding additional functionalities such as lighting up Razor directive completion when completion was invoked on top of Razor directives (non-C#) but ran into issues involving the core HTML editor not consuming the new completion APIs yet. That's something we'll have to re-visit once they move to the new completion APIs.
- Added tests to validate all aspects of new completion APIs.
- Made completion provider turn on and off based off of feature flag.
#1743
#1813
2018-08-10 11:37:47 -07:00
unknown
f62f96eb37
Merge branch 'release/2.2'
2018-08-10 11:23:46 -07:00
Nate McMaster
7d91d659ff
Merge branch 'release/2.2'
2018-08-10 11:06:49 -07:00
Nate McMaster
af616d9b99
Remove KoreBuild-isms from project templates ( #667 )
...
Removing MSBuild properties and items are for our build infrastructure, not for customers.
2018-08-10 11:01:56 -07:00
Pranav K
9da8e2c908
Ensure UnsupportedContentTypeFilter runs before ModelStateInvalidFilter
...
Both UnsupportedContentTypeFilter and ModelStateInvalidFilter use ModelState to
determine the response. UnsupportedContentTypeFilter returns a more specific
response and should execute earlier than the latter filter.
Fixes #8236
2018-08-10 10:39:13 -07:00
Nate McMaster
ae3cdb304e
Merge branch 'release/2.2'
2018-08-10 10:13:35 -07:00
Nate McMaster
ecb353ab2a
Merge branch 'release/2.1' into release/2.2
2018-08-10 09:49:37 -07:00
BrennanConroy
b82fcc0b21
log when WebSocketTransport has started ( #2752 )
2018-08-10 09:49:17 -07:00
Nate McMaster
9534c08142
Change versioning of Microsoft.AspNetCore.DataProtection.Redis to 2.2 ( #320 )
2018-08-10 09:13:02 -07:00
Nate McMaster
a85d99ab8e
Add the 2.1.3 archive baselines and a target to ensure this test is run on PR builds
2018-08-10 09:08:55 -07:00
John Luo
62a30a731d
Fix bug in graceful shutdown
2018-08-10 00:17:29 -07:00
Pavel Krymets
4628525301
Start W3SVC if it is stopped ( #1197 )
2018-08-09 17:30:26 -07:00
Chris Ross (ASP.NET)
66e65635ad
Merge branch 'release/2.2'
2018-08-09 14:02:35 -07:00
Chris Ross (ASP.NET)
b078521f17
Hold open the nginx dynamic port
2018-08-09 12:30:32 -07:00
John Luo
cef46fdaa7
Merge branch 'johluo/more-graceful' into release/2.2
2018-08-09 12:00:36 -07:00
John Luo
7c9e234457
Gracefully wait for streams to complete when pipe completes
2018-08-09 11:59:47 -07:00
Pavel Krymets
8361b8cfa9
Split handler resolution from application info ( #1177 )
2018-08-09 11:32:51 -07:00
Günther Foidl
c8418c6de8
Derive SocketAwaitable from SocketAsyncEventArgs ( #2592 )
...
* SocketSenderReceiverBase as baseclass for SocketSender and SocketReceiver
* Made SocketAwaitable.GetResult inlineable
* SocketAwaitable renamed to SocketAwaitableEventArgs and inherited from SocketAsyncEventArgs
Thus saving an extra object (`SocketAwaitable`) and two int-fields, so less allocations.
2018-08-09 11:24:06 -07:00
Pavel Krymets
e6330ab19b
Fix win7 test again ( #1187 )
2018-08-09 10:08:44 -07:00
Pavel Krymets
dd429e9597
Catch exceptions thrown by is_regular_file ( #1179 )
2018-08-09 09:45:28 -07:00
Pavel Krymets
d6f410bf42
Add locked app_oflline file test and remove retrying client ( #1178 )
...
* Add locked app_oflline file test and remove retrying client
* Write bytes to file
2018-08-09 09:21:02 -07:00
Ryan Nowak
b394b51c3d
Merge branch 'master' into merge/release/2.2-to-master
2018-08-09 08:18:47 -07:00
Ryan Nowak
12cb35894e
Add support for GraphViz
...
Adds **internal** support for dumping a route table to GraphViz DOT
notation. This allows us to dump the DFA graph for a route table and
visualize it.
Example:
https://gist.github.com/rynowak/2b24e4a6a602ca6f9c4de3ec227d621b
2018-08-08 21:36:39 -07:00
James Newton-King
95267a32e2
Add EndpointBuilder ( #701 )
2018-08-09 13:06:27 +12:00
unknown
d32a5c14e1
Merge branch 'release/2.2'
2018-08-08 18:06:19 -07:00
uazo
7d92c07fba
fix HtmlBlock codegen ( #1209 )
2018-08-08 17:46:37 -07:00
Pavel Krymets
433dd42909
Use web.config for ASPNETCORE_DETAILEDERRORS
2018-08-08 17:14:46 -07:00
BrennanConroy
a550ae6cc3
Provide a better error message when invoking a non-existant hub method ( #2768 )
2018-08-08 15:55:33 -07:00
Ryan Brandenburg
c33044c555
Merge branch 'merge/release/2.2-to-master'
2018-08-08 15:42:36 -07:00
Kristian Hellang
da1189e6f1
Use StatusCodes constants instead of literals in the ProducesResponseType code fix ( #8234 )
...
* Use StatusCodes constants instead of literals
2018-08-08 14:41:30 -07:00
BrennanConroy
2265acde78
Don't start stream if already canceled ( #2764 )
2018-08-08 14:04:05 -07:00
Pavel Krymets
d153bab4a1
Use configurationRedirection for IIS Deployer ( #1170 )
2018-08-08 11:25:44 -07:00
Stephen Halter
c0557cfca7
Improve exception handling in Http2Connection.ProcessRequestsAsync ( #2787 )
2018-08-08 11:20:49 -07:00
Chris Ross (ASP.NET)
5378900e0c
Ack settings before window updates #2772
2018-08-08 11:19:23 -07:00
Ryan Brandenburg
f868277373
Experience review feedback
2018-08-08 10:57:45 -07:00
Arthur Vickers
6b09fa4e86
Merge pull request #431 from andrewjsaid/dev
...
Show correct missing key name in NoContextType error message
2018-08-08 10:28:15 -07:00
Chris Ross (ASP.NET)
c73d513289
Add Http2 frame logging
2018-08-08 09:46:42 -07:00
Nate McMaster
78045b2177
Automate authenticode code-signing using Roslyn sign tool
...
* Change project layout to prepare for upcoming Arcade changes
* Add signtool config file to configure OPC, NuGet, and Authenticode signing
* Fix a bug when BaseIntermediateOutputPath is set to an absolute path
2018-08-08 08:52:46 -07:00
Andrew Stanton-Nurse
556a234c45
Merge pull request #2755 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-08-08 08:17:40 -07:00
Ryouko Konpaku
e5ea2526b1
Fix for builds when the assembly has spaces on it's name.
2018-08-08 13:02:21 +01:00
David Fowler
5e7f63b096
Make un-graceful shutdown a bit more graceful ( #2748 )
...
* Make un-graceful shutdown a bit more graceful
- Change how graceful shutdown is done to ensure there are no errors on shutdown.
- Avoid closing pipes from under other components that own those pipes.
- Close the application output so that the application's read loop ends gracefully. For websockets, we cancel the token, for other transports, we close the output directly.
2018-08-07 21:39:09 -07:00
Mike Harder
7431892e64
Replace "std::experimental::filesystem" with "std::filesystem" ( #1153 )
...
* Continuation of #1082
2018-08-07 16:37:11 -07:00
Mike Lorbetske
b53d50f6f0
Fix incorrectly resolved cross-document pointers
2018-08-07 16:16:33 -07:00
Stephen Halter
0e99235d59
Add in-memory functional test project ( #2780 )
...
- Run AddressRegistrationTests independently to avoid port conflicts
- Only run tests that verify transport behavior for each transport
2018-08-07 15:34:11 -07:00
Chris Ross (ASP.NET)
0cf53e7d34
Show HTTP/2 status on requests #106
2018-08-07 14:39:27 -07:00
Kiran Challa
9585084258
Using Routing feature branch versions
2018-08-07 13:38:36 -07:00
John Luo
8a74cf3ed5
Gracefully shutdown HTTP/2 connections on server and client initiated shutdown
2018-08-07 10:59:29 -07:00
BrennanConroy
cba79d1687
Merge branch 'release/2.2'
2018-08-07 10:56:03 -07:00
James Newton-King
dce72c9553
Remove public extension methods for registering endpoint routing ( #697 )
2018-08-07 17:49:31 +12:00
BrennanConroy
e403de7fbf
Solve LongPolling races by moving Cts disposal to connection disposal ( #2731 )
2018-08-06 19:17:29 -07:00
James Newton-King
39c5700148
Add docs to RouteValuesAddress ( #695 )
2018-08-07 13:14:35 +12:00
Pavel Krymets
c6830afa55
Add default debug log file name and dll information to debug log ( #1149 )
2018-08-06 17:20:44 -07:00
Nate McMaster
22a3fbf861
Use $(TargetDir) instead of $(ProjectDir)$(OutputPath)
2018-08-06 16:48:36 -07:00
Ryan Brandenburg
647f0f81c2
CompatibilityVersion -> 2.2
2018-08-06 16:22:05 -07:00
Ryan Brandenburg
e47a08612b
JQuery-validate-unobtrusive version 3.2.10
2018-08-06 15:21:46 -07:00
Mike Harder
60a559719f
Reduce probability of startup port collisions ( #1136 )
...
- GetTickCount() is limited to the resolution of the system timer, which is typically 10-16 ms. If two apps in separate app pools are started within this time window, it's possible GetTickCount() will return the same value, which causes the apps to try the same random port(s).
- Addresses #1124
2018-08-06 14:41:11 -07:00
James Newton-King
47f2f451e3
EnableEndpointRouting documentation ( #8220 )
2018-08-07 09:22:33 +12:00
Ryan Brandenburg
f82461b4b0
Merge branch 'merge/release/2.2-to-master'
2018-08-06 13:01:08 -07:00
Pavel Krymets
4e7cbb1931
Initialize logging under exclusive lock ( #1161 )
2018-08-06 12:30:58 -07:00
Ryan Brandenburg
c5a5134e46
Revert "Rename Web Application to Starter Web Application"
...
This reverts commit 01ce77da56 .
2018-08-06 12:10:14 -07:00
Ryan Brandenburg
41d648fcc1
Fully-qualify model name
2018-08-06 12:03:22 -07:00
Chris Ross (ASP.NET)
ea7e53cab0
Send Resets for unhandled app exceptions #2733
2018-08-06 11:35:42 -07:00
unknown
beb546e8df
Merge branch 'release/2.2'
2018-08-06 11:07:16 -07:00
BrennanConroy
e78e3db6f4
Honor InherentKeepAliveFeature for server timeout ( #2727 )
2018-08-06 10:37:12 -07:00
Artak
3ee57ff81a
Merge pull request #659 from aspnet/dev/mkArtakMSFT/issue579
...
Removed the `layout=null` assignment from the page
2018-08-06 10:35:26 -07:00
Ryan Brandenburg
71c15fb76a
Use bootstrap4 for templates
2018-08-06 10:16:35 -07:00
Pavel Krymets
959771e73a
Fix incrementality checks for test projects ( #1145 )
2018-08-06 09:46:40 -07:00
Pavel Krymets
c2f5101b73
Split managed application status and IApplication status ( #1148 )
...
Split managed application status and IApplication status
2018-08-06 09:41:56 -07:00
Artak
14512a714f
Removed the `layout=null` assignment from the page
2018-08-06 08:55:51 -07:00
Ryan Brandenburg
d95f971693
Fix broken tests
2018-08-06 07:22:55 -07:00
Gordon Beeming
3624da47ae
fixing typo #1907
2018-08-05 21:46:43 +02:00
Mike Lorbetske
43c74cfa53
Respond to much of the feedback from review
...
Default to requerying swagger for each exec
Auto-set the content-type if not yet set for requests based on swagger
Fix swagger UI command
Make error and warning colors configurable
Allow aliases to be specified in structured input based commands
Have delete not require a body
Show allowed methods for . and ..
Show verbs on the announced path after CD
Issue a request on set base and warn if there's a socket error
2018-08-03 20:58:07 -07:00
Ryan Nowak
e53a9f57db
adding more docs
2018-08-03 18:55:57 -07:00
James Newton-King
5ee3ae9002
Add XML docs to data sources and metadata ( #692 )
2018-08-04 13:34:25 +12:00
Javier Calvarro Nelson
16a933a0a4
Update static content
2018-08-03 17:18:32 -07:00
Kiran Challa
c16f86f0ef
React to Routing repo's api changes
2018-08-03 16:25:41 -07:00
Mike Harder
d199de2c80
Revert "Replace "std::experimental::filesystem" with "std::filesystem" ( #1153 )"
...
This reverts commit 2a761d635c .
2018-08-03 15:44:35 -07:00
James Newton-King
d4472f08ed
Remove legacy EnableGlobalRouting option ( #8214 )
2018-08-04 09:58:00 +12:00
Ryan Nowak
2c792ce116
Add filtering by port
...
This adds UseHealthChecks overloads that configure the health checks
middleware to listen on a preconfigured port.
This is sugar for MapWhen, but it's important because a significant set
of users will want to use Health Checks in this way.
2018-08-03 14:56:13 -07:00
Ryan Nowak
ebafbcdae3
Add filtering by port
...
This adds UseHealthChecks overloads that configure the health checks
middleware to listen on a preconfigured port.
This is sugar for MapWhen, but it's important because a significant set
of users will want to use Health Checks in this way.
2018-08-03 14:37:27 -07:00
Mike Harder
2a761d635c
Replace "std::experimental::filesystem" with "std::filesystem" ( #1153 )
...
* Continuation of #1082
2018-08-03 14:04:32 -07:00
Pavel Krymets
f867367b56
Use V2 schema for V1 outputs, do not pack pdb's ( #1152 )
2018-08-03 13:55:25 -07:00
Javier Calvarro Nelson
4b2dc59979
[ Fixes #1835 ] Move the default Identity UI to use Bootstrap 4
2018-08-03 13:48:30 -07:00
Kiran Challa
4d706f045f
rebase changes
2018-08-03 12:45:31 -07:00
Kiran Challa
09ce9c3041
Api clean up
2018-08-03 12:37:37 -07:00
James Newton-King
091cb94094
Change metadata namespace
...
Change EndpointOptions visibility to internal
Add IRequiredValuesMetadata
2018-08-03 12:37:37 -07:00
Kiran Challa
c8946a40e4
Created LinkGenerationTemplate and friends
2018-08-03 12:33:34 -07:00
Mike Lorbetske
8a9b407761
Use netcoreapp2.1 instead of 2.2
2018-08-03 12:27:02 -07:00
Pranav K
a375cba359
Copy action constraints and EndPointMetadata when setting up a PageActionDescriptor ( #8208 )
...
* Copy action constraints and EndPointMetadata when setting up a PageActionDescriptor
Fixes #8207
2018-08-03 12:04:44 -07:00
Andrew Stanton-Nurse
d709fa62b9
Merge pull request #2719 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-08-03 10:59:01 -07:00
Ryan Nowak
4549b84cb5
Remove JSON output ( #457 )
...
* Remove JSON output and convert to sample
GlennC and I made the decisison to turn the JSON output into a sample
rather than something we support out of the box. We wouldn't tell
customers to definitely use it and we don't want to introduce more
coupling to JSON.NET.
2018-08-03 09:40:45 -07:00
Mike Lorbetske
af5d8a8244
Address most code review comments
...
Pagination hasn't been dealt with yet
mac keybindings may be able to be simplified, pending some additional verification
Fix 3rd party signing cert
Bind a few common bash/zsh mappings
Check for output redirection
Make package version variable name consistent
Add --help option for the command line
Remove regions
Remove old pointer resolution code
Make command not found message more friendly
Fix issue where base address was required for requests to absolute URIs
Add options to suppress response formatting and streaming
Turn off packing for the REPL project
2018-08-03 09:18:39 -07:00
James Newton-King
ac410b76d9
Change MvcEndpointInfo to internal ( #8210 )
2018-08-03 16:30:57 +12:00
Pavel Krymets
05eb6a7f7c
Add ERROR_SHARING_VIOLATION to retry list for IISDeployer.Start ( #1147 )
2018-08-02 16:51:00 -07:00
David Fowler
bc13fd5450
Write websocket header directly to the repsonse headers ( #253 )
2018-08-02 16:45:29 -07:00
Pranav K
ce8fc29728
ConsumesAttribute accepts requests without content type
...
Fixes #8174
2018-08-02 16:27:23 -07:00
Kiran Challa
b177ba5309
Changed api of LinkGenerator
2018-08-02 16:10:56 -07:00
Pranav K
0989231ed5
Make structs readonly
2018-08-02 15:44:09 -07:00
BrennanConroy
810c7cf9ad
Fix ODE race with cancellationtokensource ( #2721 )
2018-08-02 15:24:26 -07:00
Ryan Nowak
9cea167cfa
Add docs - EndpointFeature and related types ( #687 )
...
* Add docs - EndpointFeature and related types
* Add docs for route patterns
2018-08-02 15:24:00 -07:00
BrennanConroy
90606338fb
Log when closing connection due to timeout ( #2722 )
2018-08-02 15:21:24 -07:00
Pranav K
e2b6f07778
Respect LowercaseUrls in ApiExplorer
...
Fixes #8006
2018-08-02 14:58:41 -07:00
BrennanConroy
768d2a023e
Add Origin validation to WebSockets middleware ( #252 )
2018-08-02 14:43:11 -07:00
Pranav K
5a20037965
Move API convention analyzers to Microsoft.AspNetCore.Mvc.Api.Analyzers
...
Fixes #8153
2018-08-02 13:53:33 -07:00
Artak Mkrtchyan
6d9aa281c5
Render `maxlength` attribute for an input tag, when MaxLength or StringLength validation attributes are applied to the model class.
2018-08-02 13:44:19 -07:00
Chris Ross (ASP.NET)
beca0259c2
Verify request Content-Length #2733
2018-08-02 13:23:57 -07:00
Pavel Krymets
477fd1d90d
Aquire exclusive lock when creating application info ( #1142 )
2018-08-02 13:17:17 -07:00
Scott Addie
d5cad26462
Clarify help text for --no-https option
2018-08-02 10:02:50 -07:00
Pranav K
b7335ac768
Add a code fix that applies ProducesResponseTypeAttributes
2018-08-02 09:40:18 -07:00
Pavel Krymets
1d1b2155c4
Merge pull request #1117 from aspnet/shirhatti/updatemodulename
...
Update module version property to match exact name of the module
2018-08-02 08:57:10 -07:00
Ryan Nowak
64124e9c85
Add filtering to Health Checks middleware
...
This allows each middleware to be configured with a specific set of
checks (by name). See the comments in the sample for how this is
frequently used.
This is also addresses aspnet/Home#2575 - or at least the part that we
plan to do. We think that any sort of built-in system of metadata or
tags is vast overkill, and doesn't really align with the primary usage
of health checks.
We're providing building blocks, and these can be put together to
build more complicated things like what's described in aspnet/Home#2575 .
2018-08-01 19:07:58 -07:00
Ryan Nowak
2b289d2f2c
Use MatcherPolicy for Consumes
2018-08-01 19:05:04 -07:00
Ryan Nowak
47f427d5ac
Updating Health Checks for 2.2
...
A bunch of small changes and updates for 2.2 focused at making our main
scenarios more streamlined and focused. Also adds samples for
extensibility we support so far.
A list of changes:
Clearing baselines for these projects. We didn't ship anything in 2.1 so
there should be nothing in the baselines.
--
The middleware now uses Map for path matching. This makes the actual
`HealthCheckMiddleware` more standalone. This will make it easy to use
with Dispatcher/Endpoint Routing in the future.
This also manifests by removing Path from HealthCheckOptions - the path
is an explicit argument to the UseHealthChecks middelware - this
streamlines the design for 3.0.
--
Added extensibility for customizing the status codes (aspnet/Home#2584 )
--
Added extensibility for writing the textual output (aspnet/Home#2583 )
--
Changed the default output to be `text/plain`. The most common use cases
for health checks don't include a detailed status.
The existing output format is still available as an option.
2018-08-01 18:49:44 -07:00
James Newton-King
8c4f187c22
Endpoint routing rename and API review changes ( #684 )
2018-08-02 13:38:08 +12:00
James Newton-King
44f5b54f5f
React to routing API review ( #8194 )
2018-08-02 13:37:43 +12:00
Wraptor
a080301b89
Removed CorsConstats.Simple* variables
2018-08-01 16:02:13 -07:00
Flying Wraptor
2db11051d8
Removed Simple request filtering
2018-08-01 16:02:13 -07:00
Pavel Krymets
8ea2cd9081
Ship shim with integration testing ( #1129 )
2018-08-01 15:40:45 -07:00
Pavel Krymets
44056697e6
Merge branch 'merge/release/2.2-to-master'
2018-08-01 13:46:05 -07:00
Mike Lorbetske
7487da155f
Switch signing certificate for Newtonsoft.JSON to Microsoft3rdPartyAppComponentDual
2018-08-01 12:42:16 -07:00
Mike Lorbetske
7f8f210a24
Add license headers to all files
...
Bump version of JSON.NET to 11.0.2
2018-08-01 12:37:35 -07:00
Mike Lorbetske
89ab0cfde8
Initial commit of the HTTP REPL
2018-08-01 12:37:34 -07:00
Pranav K
814a803ed8
Use local instances of MemoryCache in script, link and image tag helper
2018-08-01 10:14:31 -07:00
Dylan Dmitri Gray
76706144a5
Add support for streaming arguments to clients using Channel ( #2441 )
2018-08-01 09:31:43 -07:00
Kiran Challa
f4ff537a31
Fix flaky test by using a different instance of contract resolver
...
[Fixes #8175 ] FlakyTest: ExecuteAsync_ErrorDuringSerialization_DoesNotCloseTheBrackets
2018-08-01 07:33:37 -07:00
James Newton-King
046af405b6
Rename global routing to endpoint routing ( #8179 )
2018-08-01 15:05:49 +12:00
Mike Harder
ff0a5bbbdf
Update resources.h ( #1134 )
2018-07-31 19:21:32 -07:00
BrennanConroy
d7c696f51f
Merge branch 'release/2.2'
2018-07-31 16:44:50 -07:00
BrennanConroy
c8eedb3540
Fix race when connection is canceled and new poll comes in ( #2697 )
2018-07-31 16:36:54 -07:00
Pavel Krymets
658906bf7c
Add TestApplication to allow publish output caching ( #1511 )
2018-07-31 16:36:31 -07:00
BrennanConroy
651b39bc90
Revert "Merge branch 'master' into release/2.2"
...
This reverts commit 785200877a , reversing
changes made to 3d6e1e69fd .
2018-07-31 15:24:33 -07:00
Kiran Challa
e19b0b738c
PR Feedback
2018-07-31 14:51:55 -07:00
Kiran Challa
85c7bd8fac
Discard ambient values during link generation if the values do not match explicit values
...
[Fixes #544 ] Link generation: Discard ambient values unless routing to the same address
2018-07-31 14:50:04 -07:00
Kiran Challa
ef2c127459
Show route name
2018-07-31 14:08:24 -07:00
Ajay Bhargav Baaskaran
3f429d02ab
Merge pull request #2521 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-07-31 13:01:44 -07:00
Kiran Challa
f62877b9db
Show default values in CompositeEndpointDataSource's debugger display string
2018-07-31 12:39:37 -07:00
Ajay Bhargav Baaskaran
a4b91d6dce
Flatten AggregateExceptions in rzc
2018-07-31 11:11:43 -07:00
Pranav K
0726b8b98b
Make publicly exposed Roslyn types internal
2018-07-31 11:08:22 -07:00
Pranav K
e094d2579e
Suppress obsolete warnings
2018-07-31 11:06:30 -07:00
Mikael Mengistu
785200877a
Merge branch 'master' into release/2.2
2018-07-31 10:22:09 -07:00
BrennanConroy
3d6e1e69fd
Close LongPolling connection on poll exception ( #2701 )
2018-07-31 09:52:10 -07:00
Wouter
1e14a22e0d
Change description of role in RequireRole method
...
The description of the pram roles feels ambiguous. Make it clear that the user should belong to one of the roles and not all of them.
As documented: https://docs.microsoft.com/en-us/aspnet/core/security/authorization/roles?view=aspnetcore-2.1
2018-07-31 13:40:49 +02:00
N. Taylor Mullen
94a1314146
Add IVT to strong name shim for investigative purposes.
2018-07-30 18:07:54 -07:00
Pranav K
ddde149792
Cleanup some IDE warnings
2018-07-30 15:06:43 -07:00
Pranav K
b2a1a7c9de
Ensure parent is a MethodDeclarationSyntax
2018-07-30 14:59:27 -07:00
Pavel Krymets
5d4fedaeac
Remove extra logic from file watcher ( #1107 )
2018-07-30 14:37:33 -07:00
Pranav K
d346255db6
Add analyzer and codefix that suggests removing unnecessary invalid model state validity checks
...
Fixes #8146
2018-07-30 13:14:20 -07:00
Justin Kotalik
7a4a945fd6
Stop site and app pool before restoring config ( #1112 )
2018-07-30 12:58:48 -07:00
Stephen Halter
6d46410a76
Don't ACK ACKs ( #2767 )
2018-07-30 12:25:32 -07:00
Justin Kotalik
367717760b
Handle subtype with suffix being a subtype without a suffix ( #8170 )
2018-07-30 12:05:41 -07:00
Justin Kotalik
80b6ae4eb4
Handle subtype with suffix being a subtype without a suffix ( #1027 )
2018-07-30 12:05:35 -07:00
Pranav K
0102d4efab
Introduce ApiConventionMethodAttribute
...
Fixes #8147
2018-07-30 11:13:25 -07:00
N. Taylor Mullen
cb557cf771
Changed `GetDesiredIndentation` to be resilient to our SyntaxTree which occasionally has gaps.
...
- Added a test to cover the scenario.
#2489
2018-07-30 10:45:18 -07:00
Sourabh Shirhatti
132a382838
Update Microsoft.AspNetCore.Server.IISIntegration.targets
2018-07-30 09:51:17 -07:00
Sourabh Shirhatti
6a29b5296b
Update Microsoft.AspNetCore.Server.IIS.targets
2018-07-30 09:50:14 -07:00
Justin Kotalik
41493f01e3
Don't stop redirect stdout/stderr after startup is done. ( #1067 )
2018-07-29 23:25:32 -07:00
Ryan Nowak
fbae57cde1
React to the removal of EndpointConstraint
2018-07-28 19:03:16 -07:00
Ryan Nowak
f8b3b73ca7
Remove EndpointConstraints
...
Adds IEndpointSelectorPolicy so that MVC can plug in to the
EndpointSelector to run action constraints.
2018-07-28 19:03:12 -07:00
James Newton-King
c01c7075be
Add EndpointMetadata to ActionDescriptor and hookup CORS ( #8158 )
2018-07-28 16:12:54 +12:00
Justin Kotalik
0af3bef0fe
Fix win7 test failures. ( #1109 )
2018-07-27 17:32:01 -07:00
James Newton-King
f870503cdd
Fix HttpMethodMetadata debug string ( #666 )
2018-07-28 11:13:30 +12:00
Chris Ross (ASP.NET)
647e7c3266
Add new ConfigureKestrel extensions #2760
2018-07-27 15:25:18 -07:00
Justin Kotalik
f901bca8a7
Fixing jenkins agents. ( #1106 )
2018-07-27 15:00:04 -07:00
N. Taylor Mullen
38e145389e
Fix BackgroundDocumentGenerator flaky tests.
...
- Some time spans were too aggressive for parsing a Razor file on a slow environment.
- Fixed an obvious race where we'd expect 0 pending notifications when it was possible to be in the process of clearing notifications.
#2506
2018-07-27 14:49:12 -07:00
Chris Ross (ASP.NET)
c7dd9ff68a
Enable Http/2 by default #2720
2018-07-27 12:51:12 -07:00
Justin Kotalik
6efdf78fb5
IIS ANCM support in test matrix ( #1509 )
2018-07-27 11:48:57 -07:00
Stephen Halter
94cfc01fbf
Implement HTTP/2 input flow control ( #2740 )
2018-07-27 10:47:27 -07:00
Pavel Krymets
5875ff40b1
Add UseIIS to CreateDefaultBuilder ( #278 )
2018-07-27 10:18:56 -07:00
Steve Sanderson
16d005e00c
Fix returning arrays in async JS interop calls. Fixes #1205
2018-07-27 10:11:45 -07:00
Steve Sanderson
4b861929be
Temporarily disable HtmlBlockPass for 0.5.1. Will be re-enabled later.
2018-07-27 10:11:31 -07:00
Ryan Nowak
54e5370e8f
Add CORS support to HttpMethodMatcherPolicy
...
Also removes HttpMethodEndpointConstraint, since it's been fully
replaced.
2018-07-26 23:01:11 -07:00
Nate McMaster
a3dd609ae6
Merge branch 'release/2.2'
2018-07-26 17:07:54 -07:00
Nate McMaster
fed2eb1cdf
More robust username discovery on Linux in NginxDeployer ( #1508 )
...
VSTS does not have the LOGNAME env var set. This adds some fallbacks (USER and USERNAME) and `whoami` if they are not present.
2018-07-26 17:07:24 -07:00
Pavel Krymets
7067d92c75
Limit RH native assets to netcoreapp2.2 ( #1105 )
2018-07-26 14:15:50 -07:00
Doug Bunting
556880872d
Ensure later validations of `null` models do not overwrite `Invalid` state
...
- #8078
2018-07-26 13:49:22 -07:00
Pavel Krymets
afa5d60821
Add content/webroot and currect directory tests ( #1103 )
2018-07-26 12:12:12 -07:00
Ajay Bhargav Baaskaran
8e23eb38b4
Honor NoBuild flag during publish
2018-07-26 11:40:38 -07:00
Nate McMaster
be3691aee8
Merge branch 'release/2.2'
2018-07-26 09:33:54 -07:00
Doug Bunting
498fa2d72f
Avoid `InvalidOperationException` when serializing `SerializableError`
...
- #8055
- provide unique name (`<Empty-Key>`) for XML elements that would otherwise be nameless
nits:
- remove now-useless Mono special case in updated test class
- extend updated tests to involve square brackets as well as empty keys
2018-07-26 08:56:02 -07:00
Pavel Krymets
61b4473abe
Fix another shutdown race and appofline race ( #1071 )
2018-07-26 08:12:08 -07:00
John Luo
ebec69292b
We no longer use the IMemoryCache from DI
2018-07-25 21:47:13 -07:00
Hao Kung
c4e8dd3664
Rename WebHostBuilderFactory ( #1505 )
2018-07-25 16:44:20 -07:00
James Newton-King
c68c5befc7
Remove ChangeToken from EndpointDataSource ( #662 )
2018-07-26 11:06:54 +12:00
James Newton-King
f31ab716ee
Change MvcEndpointDataSource to use GetChangeToken ( #8137 )
2018-07-26 09:20:26 +12:00
Steve Sanderson
26aa6e838f
Auto-remove the AspNetCorePackageVersion attribute from templates
2018-07-25 12:43:40 -07:00
BrennanConroy
34a7fc4d99
Merge branch 'merge/release/2.2-to-master'
2018-07-25 11:45:32 -07:00
Steve Sanderson
a46dd91fd4
Fix server-side template custom restore sources condition
2018-07-25 11:24:07 -07:00
Nate McMaster
68fd26a46b
Merge branch 'release/2.2'
2018-07-25 11:19:21 -07:00
Steve Sanderson
4e892e74da
Fix handling nonvoid elements in markup blocks ( #1190 )
...
* Fix empty nonvoid elements in markup blocks. Fixes #1186
* Also update another test
2018-07-25 09:53:52 -07:00
Steve Sanderson
0f8fdad593
Further 0.5.0 tweaks ( #1191 )
...
* Clarify debug instructions further
* Fix error message
* Add "using Microsoft.JSInterop" in templates
* Clarify template descriptions
2018-07-25 09:33:12 -07:00
Nate McMaster
2e96271e69
Merge branch 'release/2.1' into release/2.2
2018-07-25 09:29:48 -07:00
Kiran Challa
10ce77b9ca
Updated MvcEndpointDataSource to create endpoints with SuppressLinkGenerationMetadata
2018-07-25 06:41:57 -07:00
Ryan Nowak
19f24cad16
fix silly constructor
2018-07-24 21:54:24 -07:00
James Newton-King
1340f9c26b
Add EndpointSelectorCandidate ctor to not break MVC ( #661 )
2018-07-25 16:03:26 +12:00
James Newton-King
fdff66054f
Missing ChangeToken -> GetChangeToken updates ( #660 )
2018-07-25 14:35:41 +12:00
James Newton-King
c08504b08a
MVC startup experience ( #8131 )
2018-07-25 14:30:51 +12:00
Ryan Nowak
147c9527f3
Implement EndpointSelector and MatcherPolicy ( #646 )
...
Implement EndpointSelector and MatcherPolicy
This change makes the EndpointSelector API more concrete, and is the
beggining of removing EndpointConstraint by making it obsolete.
To that end, I'm introducing MatcherPolicy, which is a
feature-collection API for registering policies that interact with the
DfaMatcher. The two policies that we'll need to start are:
- ability to order endpoints
- ability to append 'policy' nodes to the graph
These two concepts together replace EndpointConstraint. Extending our
graph representation is a really efficient way to processing most common
scenarios.
---
In general this helps with common cases where 4 or so endpoints match
the URL, but with different HTTP methods supported on each. Today we
have to process route values and call into some 'policy' to make a
decision about which one is the winner. This change pushes this
knowledge down into the graph so that it's roughly as cheap as a
dictionary lookup, and can be done allocation-free.
The big savings here is ability to remove more candidates *before*
collecting route data.
---
Along with this change, I also built 'rejection' into the DFA node
model, you can see an example with the HTTP Method handling that I
implemented. I implemented a policy that can treat failure to resolve an
HTTP method as a 405 response by returning a failure endpoint. This is
at the heart of much of the feedback we've gotten in this area around
versioning and http method handling. We also have a version of this
feature in MVC for [Consumes].
2018-07-24 17:31:51 -07:00
Kiran Challa
f37ca0d2e9
Show list of endpoints in CompositeEndpointDataSource's DebuggerDisplayString
...
[Fixes #633 ] Show list of registered endpoints as debugger display string
2018-07-24 17:22:43 -07:00
Kiran Challa
6f4c10a664
PR feedback
2018-07-24 17:17:08 -07:00
Kiran Challa
71cb933a08
Show a flattened tree in LinkGenerationDecisionTree's DebuggerDisplayString
...
[Fixes #636 ] Flatten the LinkGenerationDecisionTree to show as debugger display string
2018-07-24 17:11:53 -07:00
Steve Sanderson
b5ff6db1d4
Fixes for 0.5.0 ( #1183 )
...
* Fix macOS debug launch instructions
* Remove license headers from template files
2018-07-24 16:51:00 -07:00
Kiran Challa
34499dbe24
Added support for suppressing link generation for endpoints
2018-07-24 16:47:34 -07:00
Justin Kotalik
5bd475ef90
Add event logs for some startup failure cases ( #1081 )
2018-07-24 13:17:05 -07:00
Nate McMaster
ba02ab85c1
Merge branch 'release/2.2'
2018-07-24 13:00:07 -07:00
Steve Sanderson
1236b77dfc
Server template tweaks ( #1181 )
...
* Add server template projects to Blazor.sln
* Disable linking for server execution
* Minor tweaks to Startup.cs
2018-07-24 12:00:07 -07:00
Nate McMaster
0435add47a
Merge branch 'release/2.1' into release/2.2
2018-07-24 11:59:30 -07:00
Nate McMaster
1f3524787e
Merge branch 'release/2.1' into release/2.2
2018-07-24 11:43:13 -07:00
Nate McMaster
31eaaac4a8
Merge branch 'release/2.1' into release/2.2
2018-07-24 10:34:53 -07:00
Steve Sanderson
4aaeac1e51
preventDefault for form onsubmit handlers. Fixes #951
2018-07-24 08:11:02 -07:00
Kiran Challa
7da1baf9d8
Do not use decision tree for named routes in RouteValuesBasedEndpointFinder
2018-07-24 05:33:19 -07:00
Kiran Challa
3df34dbbfe
React to Routing repo's LinkGenerator api changes
2018-07-24 05:20:53 -07:00
Kiran Challa
5f1631ab46
Added support for configuring route options with LinkGenerator
2018-07-24 04:45:33 -07:00
Daniel Roth
79c60c91af
Fixup default value for TemplateBlazorPackageVersion in server-side template
2018-07-23 23:26:20 -07:00
Daniel Roth
214598e579
Update survey link for 0.5.0
2018-07-23 22:11:00 -07:00
Ryan Nowak
65d9499e57
Template updates for 0.5 ( #1177 )
...
* Add startup pattern for client-side templates
* Add Server Side Blazor template
* minor feedback
* rename project
2018-07-23 21:54:50 -07:00
Ryan Nowak
8b3f26b962
Fix #1169 ignore DOCTYPE
...
This change will cause the compiler to ignore <!DOCTYPE ...>
declarations in Blazor components. We don't think there's much useful
Blazor can do with doctype, since we don't generate textual output for
the browser the parse. The sanest thing to do for now is just to skip
over it.
2018-07-23 17:42:47 -07:00
Steve Sanderson
d2f74249b1
Fix updating attributes on SVG elements. Fixes #934 and #1114
2018-07-23 16:03:18 -07:00
Doug Bunting
684e7855a6
Handle `null` entries correctly for `IsEmptyOrWhiteSpace`
...
- #2497
nits:
- take VS suggestions
- un-scramble `IsEmptyOrWhiteSpaceCore(...)` for readability
2018-07-23 15:25:41 -07:00
Steve Sanderson
d3f74b9f43
Fix for blazor.config issue reported in #376
2018-07-23 13:30:50 -07:00
Steve Sanderson
0062ce2563
Fix publishing projects with content packages. Fixes #1156
2018-07-23 12:49:08 -07:00
Sindhudweep Sarkar
feceb3ddea
Lowercase scheme and host to better align with RFC 6454.
2018-07-23 12:22:15 -07:00
Ryan Nowak
8f072a0711
Add HTML Block rewriting ( #1146 )
...
* Add HTML Block rewriter
* Baseline updates
* test gaps
* Update some unit tests to represent same behavior as before
* Define Markup frame type. Tests for rendering markup frames into render tree.
* Support markup frames during diffing (retain, insert, update, delete)
* Support markup blocks on WebAssembly
* Support rendering markup frames with server-side execution too
* Support markup blocks with multiple top-level nodes. Support updating markup dynamically.
* Define MarkupString type as a way to insert dynamic markup without needing custom RenderFragment code
* Remove comment
* CR: Better null value handling
2018-07-23 18:18:07 +01:00
Steve Sanderson
17b55b983a
Export Blazor.platform for back-compat. Covers #1157
2018-07-23 10:15:58 -07:00
Alexej Timonin
52c1e942c6
Added UseCamelCasing and UseMemberCasing extension methods to MvcJsonOptions ( #7256 )
2018-07-23 10:11:04 -07:00
Steve Sanderson
0e4a657d2e
TextDecoder polyfill ( #1168 )
...
* Polyfill for TextDecoder
* Move UTF8 decoder logic into a separate file. Don't polyfill globally.
* Workaround issue in UTF8 decoder logic
* Add attribution for fast-text-encoding
* Added TPN for fast-text-encoding
2018-07-23 17:33:39 +01:00
Pavel Krymets
fba4e3ec4e
Switch to non-experimental filesystem ( #1082 )
2018-07-23 08:57:43 -07:00
Ryan Nowak
2c325440de
Remove AddDispatcher/UseDispatcher
2018-07-22 20:35:10 -07:00
Ryan Nowak
196e3f109f
React to Routing branding
...
This is a reaction PR for the branding changes in progress in Routing.
This can be merged after the changes to in to Routing.
2018-07-22 19:47:15 -07:00
James Newton-King
1e807240ea
Add GetChangeToken to EndpointDataSource ( #649 )
2018-07-23 13:46:22 +12:00
Ryan Nowak
b9df95831d
Change Branding
...
For preview one the branding is:
new thing = UseGlobalRouting/UseEndpoint
old thing = UseRouter
We're going to drop the name Dispatcher everywhere and make sure that we
position our new work as 'new and improved routing' instead of
introducing a new product/concept name.
We're not totally sure of the term Global yet, but it's what we're doing
for preview 1. Suggestions welcome for dicussion after we do the first
preview :)
2018-07-22 16:41:59 -07:00
kishan.anem
c0ba374549
Custom error messages with validation message tag helper #8035
...
#8035
PR #8087
https://github.com/aspnet/Razor/issues/2497
2018-07-22 17:55:06 +05:30
Justin Kotalik
c3545c18eb
Add api sets to IntegrationTesting.IIS ( #1083 )
2018-07-20 17:32:57 -07:00
Remco
28c0c4d128
Add ability to override the testing web content root using environment variables
2018-07-20 16:56:24 -07:00
Alexej Timonin
d4beab5d09
CompositeValidationAttribute
...
- Add abstract CompositeValidationAttribute.
- Change DataAnnotationsMetadataProvider.CreateValidationMetadata to
populate ValidatorMetadata with validation attributes from CompositeValidationAttribute.
2018-07-20 15:31:14 -07:00
Ryan Nowak
f1c060bf3d
RoutePattern everywhere
2018-07-20 13:04:34 -07:00
Ryan Nowak
5c488bf09c
make feature branch build
2018-07-20 12:57:43 -07:00
Ryan Nowak
3ba6f35495
React to RoutePattern changes in Routing
2018-07-20 12:57:43 -07:00
James Newton-King
90395c933d
Implement IRoutingFeature on EndpointFeature for back-compat ( #641 )
2018-07-20 18:23:14 +12:00
Justin Kotalik
256aed8369
Make IISExpress shutdown gracefully. ( #1066 )
2018-07-19 23:20:13 -07:00
Kristian Hellang
53930af0e3
Set ProblemDetails status field during ObjectResult formatting
2018-07-19 17:57:55 -07:00
Nate McMaster
f1e66b5a6f
Reset LZMA to only include the implicit package version ( #1266 )
2018-07-19 16:50:53 -07:00
Chris Ross (ASP.NET)
612fcca729
Validate Http/2 pseudo headers #2205 #2263 #2659
2018-07-19 16:25:10 -07:00
BrennanConroy
433eeb6943
Abort connection on protocol error ( #2654 )
2018-07-19 14:50:14 -07:00
Stephen Halter
603cd03bfa
Stop writing responses after the unexpected end of request content ( #2734 )
2018-07-19 14:18:57 -07:00
David Fowler
b934e46161
Complete the transport pipes after connection middleware runs ( #2735 )
2018-07-19 11:49:46 -07:00
Ryan Brandenburg
54d0b4857f
Merge pull request #627 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-07-19 11:22:30 -07:00
Justin Kotalik
89fda83bbd
Move config operations from helpers to functions on the deployment parameters ( #1063 )
2018-07-19 11:14:07 -07:00
Steve Sanderson
41fcf65c05
Run E2E tests for server execution as well as WebAssembly. Fixes several
...
server-execution bugs uncovered by the E2E tests.
2018-07-19 18:57:17 +01:00
Steve Sanderson
154289ed3d
Allow passing DotNetObjectRef to JS in interop calls, and invoking
...
instance methods on it
2018-07-19 18:57:17 +01:00
Michael Seifert
601909865f
Fix links that assumed branch "dev" exists (which doesn't) ( #1725 )
...
* Fix links that assumed branch "dev" exists (which doesn't)
* Adressed comments [skip ci]
2018-07-19 18:12:44 +01:00
Kiran Challa
41f56dbbed
Minor fix to DefaultLinkGenerator and enabled constraint related tests in DefaultLinkGeneratorTest
2018-07-19 09:11:50 -07:00
James Newton-King
ec8976ffaf
Update MvcEndpointDataSource on raised change token ( #8108 )
2018-07-19 16:43:24 +12:00
Ryan Brandenburg
01ce77da56
Rename Web Application to Starter Web Application
2018-07-18 16:18:49 -07:00
Justin Kotalik
864caa20b4
Merge branch 'merge/release/2.2-to-master'
2018-07-18 15:25:08 -07:00
Justin Kotalik
1186741977
Merge release/2.2 into master
2018-07-18 14:34:38 -07:00
Justin Kotalik
21d9ec64f0
Add copy constructor to deployment parameters ( #1497 )
2018-07-18 14:28:48 -07:00
Nate McMaster
55b697ab05
Revert "Add package version to Microsoft.AspNetCore.App in project templates"
...
This reverts commit 727bd52b64 .
2018-07-18 13:11:01 -07:00
Ryan Nowak
477296a3cc
Make DFA matcher the default
2018-07-18 07:50:27 -07:00
Andrew J Said
af89bb661a
Clarify error message as request in pull request review
2018-07-18 12:24:22 +01:00
Pavel Krymets
0634e1183e
React to hosting changes ( #1072 )
2018-07-17 21:06:03 -07:00
Pavel Krymets
19839ed308
Revert "Merge pull request #1494 from aspnet/revert-1493-pakrym/useiis" ( #1496 )
...
This reverts commit 7a0a1ee50b , reversing
changes made to ec0b7ab2cd .
2018-07-17 21:05:59 -07:00
James Newton-King
badbcb9437
Add MvcEndpointDataSource benchmarks ( #8104 )
2018-07-18 15:48:18 +12:00
Pavel Krymets
54471a2930
Add client abort tests ( #1051 )
2018-07-17 20:26:57 -07:00
Ryan Nowak
400d243f42
Fix remaining feature gaps in DfaMatcher ( #621 )
...
* Fix remaining feature gaps in DfaMatcher
* addressed minor feedback
* missed one
2018-07-17 19:22:46 -07:00
Ryan Nowak
38b3051d09
Fix Blazor tooling on 15.8
2018-07-17 15:18:40 -07:00
Ajay Bhargav Baaskaran
7f6b05149d
Generate deterministic unique ids for tag helpers
2018-07-17 14:01:42 -07:00
Pavel Krymets
65f8cfc55b
Revert "Remove IISExpress deployer ( #1493 )"
...
This reverts commit ec0b7ab2cd .
2018-07-17 12:07:42 -07:00
Ajay Bhargav Baaskaran
21f2edce16
Generate and verify baselines for ClassifiedSpans and TagHelperSpans
...
- Moved GetClassifiedSpans and GetTagHelperSpans logic to Razor.Language
2018-07-17 10:54:42 -07:00
Pavel Krymets
ec0b7ab2cd
Remove IISExpress deployer ( #1493 )
2018-07-17 10:16:50 -07:00
Pavel Krymets
074264cd3a
Use less global variables ( #1064 )
2018-07-17 08:56:18 -07:00
Kiran Challa
1196349bf4
[ Fixes #583 ] Handle change events in RouteValueBaseEndpointFinder
2018-07-17 05:54:11 -07:00
Kiran Challa
0caacb8217
React to LinkGenerator api changes
2018-07-17 05:24:27 -07:00
Kiran Challa
aed2e24483
Allow to pass in HttpContext when generating links
2018-07-17 05:16:57 -07:00
James Newton-King
42218d5fb5
Versioning with endpoint constraint ( #8098 )
2018-07-17 16:37:45 +12:00
Ryan Nowak
02e1d78319
Minor fixes for MatchProcessorFactory
...
Fixing minor issues found doing DFA integration.
2018-07-16 21:06:35 -07:00
Ryan Brandenburg
4aa0c0cf61
Merge branch 'master' into merge/release/2.2-to-master
2018-07-16 11:44:08 -07:00
Pranav K
b62499e02c
Ensure PageContext.ViewData and ViewContext.ViewData are the same instance
...
Fixes #7675
2018-07-16 11:16:03 -07:00
Pranav K
9d951325b2
Re-organize shared src packages so we can do true IVT between src assemblies
2018-07-16 11:15:58 -07:00
Chris Ross (ASP.NET)
429bcfe216
Sending and receiving RST frames. #2462
2018-07-16 09:13:11 -07:00
Steve Sanderson
970f591803
Support loading embedded resources for server-side execution too
2018-07-16 13:57:01 +01:00
Ryan Nowak
b2e4743c7d
Change benchmarks ( #612 )
...
Add benchmarks that include some HTTP method matching.
Clean up names and name like-kinded benchmarks alphabetically.
Matcher*Benchmark -> E2E including HTTP method selection
MatcherSelectCandidates*Benchmark -> Focused on just URL path processing
2018-07-14 17:21:05 -07:00
James Newton-King
497a38035d
Add application startup check that dispatcher is added to request pipeline ( #614 )
2018-07-15 11:50:55 +12:00
James Newton-King
73e4d55d7b
Check dispatcher services registered ( #610 )
2018-07-14 18:20:42 +12:00
Justin Kotalik
c657e31b94
Fix Console invalid handle issues. ( #1029 )
2018-07-13 21:32:20 -07:00
Ryan Nowak
9e114b547d
Introduce RoutePattern ( #585 )
...
* Introduce RoutePattern
Introduces RoutePattern - a new parser and representation for routing
templates, defaults, and constraints.
This is a new representation for all of the 'inputs' to routing that is
immutable and captures 'out of line' information for defaults and
constraints.
This will allow us to unify the handling of constraints and values from
attribute style routes and conventional style routes.
2018-07-13 18:01:46 -07:00
Ryan Nowak
9778b2054a
Add blazor.server.js ( #1116 )
...
Adds a server-side flavored blazor script.
2018-07-13 18:01:05 -07:00
N. Taylor Mullen
cfd63e1e2e
Change HTML splitting logic to not split on surrogate pairs.
...
- When a surrogate pair is about to be split down the middle we reduce the size of our split by 1 character. This way we split right before a surrogate pair. In the case of zero width joiners, if we split on a zero width joiner we still render valid bytes because the zero width joiner by itself can stand alone.
- Added tests for the various split cases.
#2470
2018-07-13 17:18:56 -07:00
John Luo
6551eae321
Consolidate HTTP charset validation logic
2018-07-13 16:47:28 -07:00
Kiran Challa
bc79a47959
Temporary change to prevent cross repo breaking change: Added ooverload for MatcherEndpoint
2018-07-13 14:24:11 -07:00
Kiran Challa
42708bec91
Added support for route constraints in Dispatcher world
2018-07-13 14:18:54 -07:00
Doug Bunting
35fad0881b
Mark unused `ParameterBinder.BindModelAsync(...)` overloads as `[Obsolete]`
...
- #7660
- also addresses part of #7317 , only in `ComplexTypeModelBinderIntegrationTest`
2018-07-13 13:26:56 -07:00
Doug Bunting
f2608c2ff4
Do not suppress `ModelValidationState.Invalid` entries
...
- #7992 , #7963
2018-07-13 13:21:43 -07:00
Pranav K
dfbdb37979
Refactorings for codefix ( #8067 )
...
* Refactorings for codefix
- Move some common code in SymbolApiResponseMetadataProvider
- Don't run diagnostics for 1006 if we are unable to parse a return type
2018-07-13 13:05:49 -07:00
Justin Kotalik
b359d6bed1
Fix CI test failures ( #1045 )
2018-07-13 11:35:52 -07:00
Kiran Challa
1c7f53ae39
Fix TemplateBinder to consider null and empty string values the same
2018-07-13 10:21:55 -07:00
Steve Sanderson
ad7e98be04
Make index.html static again ( #1123 )
...
* Add build command for generating the new boot JSON file
* Remove build command for generating index.html
* Update build targets to generate blazor.boot.json
* Change SPA fallback routing to look for index.html in regular wwwroot. Will need to update setup for published apps later.
* Stop autorebuild when index.html changes, since we no longer 'build' that file
* Update Boot.WebAssembly.ts logic to use boot JSON info on startup
* Restore support for loading CSS/JS from Blazor library projects
* Use new startup script tag in all samples and templates
* Fix MonoSanity sample - it must now be an exe because we use that as the trigger to generate the boot json (not the presence of index.html any more)
* Fix SPA fallback routing for published apps
Because in a previous commit, I changed it to look for index.html inside "wwwroot" instead of "dist" (because we no longer build it). But "wwwroot" doesn't exist for published apps, because static file servers wouldn't understand it.
* CR: Fix path normalization
2018-07-13 09:49:34 +01:00
Ryan Nowak
7209cab5e9
Productize JumpTable ( #594 )
...
* Productize JumpTable
2018-07-12 23:28:51 -07:00
James Newton-King
f12f9b46ed
Add startup filter to set MiddlewareFilterBuilder.ApplicationBuilder
2018-07-13 12:23:30 +12:00
Justin Kotalik
36d7c8ec42
Add startup event log for ANCM inproc ( #1047 )
2018-07-12 16:03:06 -07:00
Hao Kung
a5083d525b
Fix regression with Authorize + IPolicyProvider ( #8068 )
2018-07-12 15:36:03 -07:00
James Newton-King
0cf972cc43
Error message on no dispatcher middleware in endpoint middleware ( #600 )
2018-07-13 10:16:21 +12:00
Pranav K
46189abda7
Refactoring for ApiConvention analyzers
2018-07-12 14:26:27 -07:00
Tim Hess
c9122a8428
Include AuthenticationTicket.Properties in AuthenticationTicket success result handling #1765 ( #1767 )
2018-07-12 13:58:49 -07:00
Pranav K
74667eda9c
Don't specify MainEntryPoint when compiling Razor assembly
2018-07-12 13:05:10 -07:00
Pranav K
174c5eaa6c
Make fewer public API changes
2018-07-12 12:46:49 -07:00
Pranav K
4f1b7ccca6
Use ModelMetadata from actual types for validation
...
Fixes https://github.com/aspnet/Mvc/issues/7952
2018-07-12 12:46:49 -07:00
Stephen Halter
f179339a79
Combine BufferWriter and CountingBufferWriter
2018-07-12 11:58:49 -07:00
Pavel Krymets
6bed0b7206
Add Microsoft.AspNetCore.Server.IntegrationTesting.IIS package ( #1037 )
2018-07-12 11:56:33 -07:00
Stephen Halter
864cfeb2aa
Merge branch 'release/2.1' into release/2.2
2018-07-12 11:18:41 -07:00
Justin Kotalik
e5dfea5725
Adds project properties and project capabilities to IIS and IISIntegration ( #969 )
2018-07-12 11:00:01 -07:00
Pavel Krymets
c81f379045
Normalize file extensions and project structures ( #1038 )
2018-07-12 09:30:50 -07:00
Kiran Challa
3a022107dc
Revert "Added support for route constraints in Dispatcher world"
...
This reverts commit 85e92ab3cc .
2018-07-12 06:24:37 -07:00
Nate McMaster
85e92ab3cc
Added support for route constraints in Dispatcher world
2018-07-12 05:06:22 -07:00
Nate McMaster
128eefdef3
Remove usage of the Microsoft.Extensions.Buffers.Sources package, copy the source into Kestrel
...
This moves source code that used to be in aspnet/Common. It was only used here, so this simplifies the process of working with these internal-only APIs.
cref https://github.com/aspnet/Common/pull/386
2018-07-11 22:31:23 -07:00
Nate McMaster
11ca4e46f6
Remove unused .Sources packages
2018-07-11 21:36:50 -07:00
James Newton-King
a67d9363e2
Consumes endpoint constraint ( #8057 )
2018-07-12 16:35:33 +12:00
Nate McMaster
e5c501099a
Remove unused .Source packages
2018-07-11 21:33:51 -07:00
Justin Kotalik
385f647215
Allow debug log file to be specified in handler settings; move tests from IISExpress to shared. ( #1033 )
2018-07-11 18:29:36 -07:00
Ryan Brandenburg
2a454c5aa8
Update js packages
2018-07-11 14:59:55 -07:00
Pranav K
dbc930cc78
ResponseCache attribute on RazorPages Error handler method should be moved to model
...
Fixes #553
2018-07-11 14:50:40 -07:00
Hao Kung
8ef14785a4
Merge pull request #1873 from dotnet-maestro-bot/merge/release/2.2-to-master
...
[automated] Merge branch 'release/2.2' => 'master'
2018-07-11 13:27:19 -07:00
Hao Kung
672974c25b
Merge fix from release/2.1
2018-07-11 13:18:34 -07:00
Hao Kung
d2a8d3a61c
Fix cookie regression ( #1811 )
2018-07-11 13:14:51 -07:00
Hao Kung
b2cca31774
Fix issue with role claim missing in AddIdentityCore ( #1832 )
2018-07-11 12:39:51 -07:00
Pavel Krymets
9635d4fd8d
Cleanup compilation warnings and re-enable asserts ( #1035 )
2018-07-11 11:47:22 -07:00
James Newton-King
183ecd85d6
Fix MVC integration with UseEndpoint ( #8047 )
2018-07-11 11:47:33 +12:00
Nate McMaster
c80c5f4a01
Update dotnet-sql-cache.csproj
2018-07-10 16:27:28 -07:00
Nate McMaster
4b0925bd72
Update LZMA cache to netcoreapp3.0
2018-07-10 16:24:28 -07:00
Nate McMaster
1aa529ddf6
Merge branch 'release/2.2'
2018-07-10 16:22:44 -07:00
Stephen Halter
a826f478ad
Implement HTTP/2 output flow control ( #2690 )
2018-07-10 14:11:59 -07:00
Anthony Stivers
0ab8e15f05
[ Fixes #1866 ] Fix ActivePage declarations
...
* Fix missing activepage declarations
* Change activepage declarations to correct values
* Add missing ActivePage
2018-07-10 13:00:52 -07:00
Anthony Stivers
31609fb3e3
[ Fixes #1866 ] Fix ActivePage declarations
...
* Fix missing activepage declarations
* Change activepage declarations to correct values
* Add missing ActivePage
2018-07-10 12:56:47 -07:00
Nate McMaster
913f8bcd4e
Merge branch 'release/2.2'
2018-07-10 12:54:00 -07:00
Nate McMaster
3e27f18127
Merge branch 'release/2.1' into release/2.2
2018-07-10 12:52:50 -07:00
Kristian Hellang
767b3efa04
Add Brotli compression provider ( #342 )
...
* Added failing test for Brotli compression
* Added Brotli compression provider
* Add Brotli to existing test cases
* Add failing test for accept encoding order
* Use compression provider order when selecting provider
* Some test cleanup
* PR feedback
* Added benchmarks for GetCompressionProvider
* Added Brotli configuration order test
* PR feedback
* Switch Brotli and Gzip priority
2018-07-10 12:44:01 -07:00
Pavel Krymets
51c94337d7
/systray:false ( #1486 )
2018-07-10 11:29:39 -07:00
Nate McMaster
1d9db7c25f
Merge 2.1.2 into release/2.1
2018-07-10 10:34:35 -07:00
Justin Kotalik
11b83dc2b3
Rename reg keys from IIS ANCM V1 to V2 ( #1017 )
2018-07-10 10:32:01 -07:00
Nate McMaster
3eae93082f
Merge 2.1.2 into release/2.1
2018-07-10 10:29:05 -07:00
Pavel Krymets
86fed4de5f
Fix shutdown race ( #1031 )
2018-07-10 10:18:32 -07:00
Steve Sanderson
d9aafb05c1
In ws-proxy, don't let the debugger die just because some .pdb doesn't correspond to files we have locally
2018-07-10 13:49:55 +01:00
Morten
a5237d16f3
Fix misleading exception message when adding a TokenProvider
2018-07-10 14:35:07 +02:00
Steve Sanderson
a728b42181
Avoid some ws-proxy crashes
2018-07-10 10:34:06 +01:00
Steve Sanderson
4868cdbfa3
Change BrowserRendererRegistry not to be static, and to scope the BrowserRenderer IDs to each instance
...
This is to ensure that, in multiuser scenarios, users can't interfere with each other by posting events for somebody else's renderer ID.
TODO: Still need to wire up or replace the temporary static BrowserRendererRegistry.CurrentUserInstance property to provide per-user storage.
2018-07-10 09:56:00 +01:00
Steve Sanderson
767a2373c8
Eliminate ElementRef's static incrementing ID for remote rendering cases
...
... because it's important not to disclose cross-user state, such as the number of IDs that have been assigned. Plus we don't want to run out of unique IDs, which we could if it's limited by the range of an 'int'.
2018-07-10 09:52:19 +01:00
Steve Sanderson
c2f3128ef9
Extremely minor cleanups
2018-07-10 09:52:19 +01:00
Pranav K
1e7be641ae
Add some common aliases for conventions
...
Fixes #8015
2018-07-09 18:25:29 -07:00
Pavel Krymets
f7936ac062
Finish up appoffline refactoring ( #1018 )
2018-07-09 16:17:33 -07:00
Kiran Challa
0812279464
Merge branch 'release/2.1' into kichalla/21.to.22.mergecommit
...
# Conflicts:
# build/dependencies.props
# korebuild-lock.txt
# src/Microsoft.AspNetCore.Mvc.ApiExplorer/DefaultApiDescriptionProvider.cs
# test/Microsoft.AspNetCore.Mvc.Core.Test/Internal/ApiBehaviorApplicationModelProviderTest.cs
# version.props
2018-07-09 13:00:10 -07:00
Kiran Challa
bd995d4cb1
[ Fixes #7959 ] Conventional routing with custom templates not working when you have area attributes
2018-07-09 12:35:14 -07:00
Alexej Timonin
dc2ae93c3f
Add fallback attribute to partial tag helper.
...
Addresses #7515
2018-07-09 12:24:26 -07:00
Ryan Nowak
ee62bd8d45
Add startup for client/mono Blazor
...
This change adds a host builder, and the startup pattern for client-side
Blazor apps running in mono/wasm. This will help us align better with
server side Blazor.
2018-07-09 11:13:26 -07:00
hishamco
dee479fda7
Add partial helper to Razor Page \ PageModel
...
Fixes #7885
2018-07-09 11:01:15 -07:00
Joseph Musser
ed57767e6a
Removed trailing space from template survey link ( #1099 )
2018-07-09 13:47:07 +01:00
Steve Sanderson
7bc67e1481
Simple approach for minifying blazor.*.js on release builds. Fixes #1003
...
Later we might want to emit both min and non-min variants of the file, when there is some way for developers to control which one they use
2018-07-09 11:04:14 +01:00
Steve Sanderson
5bccac05fc
Refactoring to prepare for remote rendering.
...
- Prepare for building multiple entrypoint variants of the .js library
- Use async interop more consistently for rendering and event handling
- Add binary serializer for RenderBatch with tests
2018-07-09 11:04:14 +01:00
Pranav K
d2bb674b0a
Add support for default response ( #8028 )
...
* Add support for default response
Fixes #6828
2018-07-06 16:44:07 -07:00
Ajay Bhargav Baaskaran
ce4780a830
Renamed symbol to token everywhere
...
- Updated Resources
- Updated test code
- Regenerated baselines
- Added exclusions for apicheck (See https://github.com/aspnet/BuildTools/issues/704 )
2018-07-06 16:29:36 -07:00
Pavel Krymets
99ec23097e
Merge pull request #1015 from aspnet/pakrym/flush-sync
...
Sync native calls
2018-07-06 15:09:46 -07:00
Pavel Krymets
5f02de1e2c
Test
2018-07-06 14:43:33 -07:00
Wilson
add0b0755d
Fixed documentation typo ( #1862 )
...
Corrected a typo on the XML documentation of the UserId property that made it read "... sets the of the ..."
2018-07-06 14:39:34 -07:00
Nate McMaster
c1fb4479a3
Update LZMA to restore netcoreapp2.2 packages
2018-07-06 13:45:30 -07:00
Nate McMaster
9276602279
Merge branch 'release/2.1' into release/2.2
2018-07-06 13:43:43 -07:00
Nate McMaster
bf03fee4be
Refactor LZMA generation to support Docker and Antares usage
...
List explicitly as .csproj files the scenarios for which the offline package cache is important
Produces new artifacts designed for various scenarios, such as:
* Docker (where xml doc files are not needed)
* Azure web apps (where 1.x SDKs must still be supported, but xml docs are not needed)
2018-07-06 13:15:23 -07:00
nulltoken
3e0b689ac2
Ensure ClientHandler properly honors Host header ( #1483 ) Fix #1481
2018-07-06 13:00:25 -07:00
Steve Sanderson
cafb56569d
Initial debugger support
2018-07-06 11:56:21 +01:00
Steve Sanderson
c881a63a78
Include Mono Debug proxy code in Server project (temporarily until it's shipped as a NuGet package)
2018-07-06 11:56:21 +01:00
Steve Sanderson
f483e6293e
Update linker config following Mono upgrade to f382b069151
2018-07-06 11:56:21 +01:00
Dylan Dmitri Gray
748e992865
Dygray/handshake versioning ( #2520 )
...
* set minor versions on the protocols
2018-07-05 16:42:42 -07:00
Patrick Westerhoff
36ea388e9b
Remove doc about unshipped default configuration ( #274 )
2018-07-05 16:13:28 -07:00
Nate McMaster
fb7a5b92cc
Merge branch 'release/2.2'
2018-07-05 15:18:12 -07:00
Mikael Mengistu
fa702ff6ef
Update AddSignalRCore to respect user registered services ( #2434 )
2018-07-05 12:52:33 -07:00
Ryan Nowak
e0168eb0c8
Implement server-side sync context
...
This is a synchronization context we can use for server side blazor to
support a single logical thread of execution. This is optimized for
scalability and non-blocking behavior.
2018-07-05 12:41:31 -07:00
Nate McMaster
2af13658fc
Unprotect key material with the local cache of certificates before checking the cert store
...
In some cases, private keys for certificates is not completely available. When attempting to decrypt key material,
this can cause 'CryptographicException: Keyset does not exist'. This changes the order in which key material
decryption looks up private keys to first key the certificate options provided explicitly to the API, and then
falling back to the cert store for decryption keys.
2018-07-05 11:31:46 -07:00
Ryan Nowak
8724b84a14
Fix #1068
...
This changes the bind lowering pass to be more tolerant of unexpected
and invalid content.
2018-07-05 11:28:54 -07:00
Justin Kotalik
73867a086c
IIS-Inproc new project cap ( #1238 )
2018-07-05 10:10:39 -07:00
Ryan Nowak
844e38e641
Update versions to 2.1
...
Updates ASP.NET package versions to 2.1
Tweaks TFMs
- libraries = netstandard2.0
- exes/apps/tools = netcoreapp2.1
- unit tests = netcoreapp2.0
- e2e tests = netcoreapp2.1 (dependency on apps)
The exception to this is the Browser.JS project which depends on our
tool for its build. however this project just builds the js code so its
TFM doesn't really matter.
2018-07-05 09:53:55 -07:00
Ryan Nowak
45544858a3
Fix #954 - use weak typing for 'event handlers'
...
This change introduces a mechanism for bypassing type checking and then
uses for the 'event handlers'. The event handler tag helpers have some
ideosyncratic behaviors and rely on overloading at the render tree
builder level.
2018-07-05 09:15:01 -07:00
Pavel Krymets
b280597c68
fb
2018-07-05 09:01:47 -07:00
Steve Sanderson
97d044e479
Update to Mono Linker d18d497
2018-07-05 13:13:28 +01:00
Nate McMaster
4ca00f6b1b
Merge branch 'release/2.2'
2018-07-03 17:55:29 -07:00
Nate McMaster
263e369b2e
Merge branch 'release/2.1' into release/2.2
2018-07-03 17:21:16 -07:00
Ajay Bhargav Baaskaran
e7db3f840b
Handle pipe name with whitespace properly
2018-07-03 16:55:55 -07:00
Nate McMaster
727bd52b64
Add package version to Microsoft.AspNetCore.App in project templates
...
As discussed in aspnet/Home#3292 , we're reversing course on the implicit package version feature. This adds a package version for Microsoft.AspNetCore.App to the `dotnet new` and VS templates.
2018-07-03 16:53:46 -07:00
Pavel Krymets
724cc3ce88
Only run fallback logic for dotnet and dotnet.exe ( #1004 )
2018-07-03 16:49:24 -07:00
Pavel Krymets
3bdb33ccd4
Sync native calls
2018-07-03 16:46:39 -07:00
Nate McMaster
26d9ef2ad7
Upgrade to netcoreapp3.0
2018-07-03 14:52:59 -07:00
Carmelo Messina
033edeaae4
Fix for #1071
2018-07-03 09:56:01 +01:00
Justin Kotalik
3efc1eede4
Set correct event providers for ANCM V2 ( #1009 )
2018-07-02 18:21:22 -07:00
Justin Kotalik
9b7ee92028
Check thread invalid handle and remove extra dup2 call. ( #1008 )
2018-07-02 17:18:05 -07:00
Nate McMaster (automated)
d742bea01e
[automated] Change default branch to master
2018-07-02 12:40:25 -07:00
Justin Kotalik
dfd75e939d
Add full IIS tests ( #979 )
2018-07-02 12:15:15 -07:00
Pranav K
335500ab0e
Use ModelMetadata from actual types for validation
...
Fixes https://github.com/aspnet/Mvc/issues/7952
2018-07-02 11:23:16 -07:00
Steve Sanderson
b869ced648
Add RenderBatch reader abstraction ( #1052 )
...
* In .JS project, make RenderBatch into an interface with SharedMemoryRenderBatch as implementation
* In SharedMemoryRenderBatch, use prototype functions instead of assigning references on each instantiation
2018-07-02 10:21:41 +01:00
Nate McMaster
1f2e966454
Update templating to use netcoreapp3.0
2018-06-29 16:32:30 -07:00
Ryan Brandenburg
5b0f8118ea
Upgrade to .NET Core 3.0.0-preview1-26629-04 ( #1240 )
...
* Upgrade to .NET Core 3.0.0-preview1-26629-04
2018-06-29 16:27:55 -07:00
Alexej Timonin
c2fcfabdf3
Add optional property to PartialTagHelper ( #7991 )
...
* Add optional to PartialTagHelper
Addresses #7268
2018-06-29 16:02:38 -07:00
Zbginiew Dobras
f6befb9ed3
Added ObjectResult implementation for Unauthorized response
2018-06-29 14:27:34 -07:00
Nathanael Marchand
133d49c57e
Fix Api Explorer not returning type with ActionResult<T> and no type in ProducesResponseTypeAttribute
2018-06-29 13:55:30 -07:00
Pranav K
7f2a64e32b
Razor runtime compilation produces errors if running on a shared runtime that's rolled forward
...
Do not provide compilation references from runtime MVC assemblies. This avoids cases where the app is compiled
against an older MVC but running against a newer one (e.g. shared fx roll forward) resulting in compiling against multiple
versions of MVC assemblies
Fixes #7969
2018-06-29 13:55:22 -07:00
Pavel Krymets
65d3787fc4
Pass parameters to createapplication method ( #998 )
2018-06-29 12:42:00 -07:00
Zef Ubachs
389ff14a82
- Changed targetframework of Microsoft.AspNetCore.Blazor.Server from netcoreapp2.0 to netstandard2.0.
2018-06-29 12:41:15 -07:00
Ryan Nowak
baf6a21ef6
Update build tools
2018-06-29 12:40:57 -07:00
Nathanael Marchand
82f7f2aab8
Fix Api Explorer not returning type with ActionResult<T> and no type in ProducesResponseTypeAttribute
2018-06-29 12:00:16 -07:00
N. Taylor Mullen
2d5a1737a2
Update Razor SDK packing logic to not include Pack at properties layer.
...
- Added test to verify that no-build scenarios work as expected.
#2378
2018-06-29 11:45:59 -07:00
Pranav K
c4d5ef94a9
Razor runtime compilation produces errors if running on a shared runtime that's rolled forward
...
Do not provide compilation references from runtime MVC assemblies. This avoids cases where the app is compiled
against an older MVC but running against a newer one (e.g. shared fx roll forward) resulting in compiling against multiple
versions of MVC assemblies
Fixes #7969
2018-06-29 11:17:25 -07:00
Pavel Krymets
dfed3d7563
Add and use GetEnvironmentVariableValue ( #997 )
2018-06-29 11:17:22 -07:00
Nate McMaster
9273759dca
[2.1]: Remove unused project capability from Microsoft.AspNetCore.App ( #1237 )
...
Removing this from .App in 2.1.3 because this was unused, and the capability is not actually supported by VS. This will be re-added in the future versions of .App when we land the VS integration for in-process hosting.
cref https://github.com/aspnet/IISIntegration/pull/969
2018-06-29 11:02:39 -07:00
Pavel Krymets
f5f0988baf
Make handlerSettings optional ( #989 )
2018-06-29 08:44:03 -07:00
Kiran Challa
54c14b8782
Reacting to Routing repo's EndpointFinder changes
2018-06-28 12:40:04 -07:00
Pavel Krymets
b84a233d39
Add ability to print debug logs to a file ( #954 )
2018-06-28 11:52:53 -07:00
Stephen Halter
2ab22ac55a
Merge branch 'release/2.1' into dev
2018-06-28 11:27:11 -07:00
Kiran Challa
1009705283
Added a RouteValuesBasedEndpointFinder
2018-06-28 10:53:10 -07:00
Stephen Halter
ac31e5ab30
[2.1.3] Consistently handle connection aborts ( #2619 )
...
* Decouple connection objects from the server (#2535 )
- Making progress towards being able to use the connection objects on the client side.
* Wait for input writer to complete before calling OnConnectionClosed (#2566 )
* Wait for the ConnectionClosed token to stop tracking connections (#2574 )
- The prior strategy of waiting for the pipe completed callbacks doesn't work
because blocks are returned to the memory pool after the callbacks are fired.
* Consistently handle connection resets (#2547 )
* Provide better connection abort exceptions and logs
* void IConnectionDispatcher.OnConnection
2018-06-28 10:51:22 -07:00
Justin Kotalik
4a09d4795e
Use HandleWrapper and initialize variables for FileOutputManager ( #986 )
2018-06-28 09:09:34 -07:00
Pavel Krymets
27780c28ba
Do not override error responses ( #985 )
2018-06-27 22:53:30 -07:00
Nate McMaster
91a1d2de50
Add unit tests for the shared framework ( #1228 )
...
Changes:
* Add a test project with simple unit tests for the shared framework
* Add root-level Directory.Build.props/targets files
* Cleanup .csproj files to reduce duplication
2018-06-27 14:56:10 -07:00
Doug Bunting
4dd4e5ef3e
Shorten names so MVC repo can be cloned on Windows benchmarks server
2018-06-27 14:33:31 -07:00
Justin Kotalik
32e0d136f2
Fix null handle issue on full IIS ( #973 )
2018-06-27 11:54:32 -07:00
pan-wang
af1bf0e1c3
caching handlers to avoid heap fregamentation ( #967 )
...
caching handlers to avoid heap fregamentation
2018-06-27 11:46:24 -07:00
Kiran Challa
d4b8fee39f
Upgraded AngularJS to 6.0
2018-06-27 10:27:39 -07:00
Ajay Bhargav Baaskaran
a92089d2f9
Converted CSharpDirectivesTest to use baselines
2018-06-26 15:17:36 -07:00
Ryan Nowak
bc5f02444b
Benchmarks and improvements to route value dictionary ( #577 )
...
* Add benchmarks for RVD
There are the scenarios that are critical for URL matching performance.
* Reimplement RouteValueDictionary
Improves the scenarios with benchmarks by about 30%
* Fix benchmark
* PR feedback
* More feedback and tests
2018-06-26 13:41:49 -07:00
David Fowler
0f4f1950f1
Attempt to make it easier to detect when the request is done ( #1021 )
...
- Today the async local reference to the HttpContext flows when the execution context is captured. When the http request has ended, the HttpContext property will return the reference to an invalid HttpContext instead of returning null. This change stores both the request id and the HttpContext and makes sure both match before returning anything valid.
- This is still racy but should catch more cases of people doing bad things.
- There will still be issue if people store the context in a local and use that reference instead of accessing it through the property getter but we can live with that.
- Set the TraceIdentifier to null in the default HttpContextFactory
- Added tests
2018-06-26 11:49:12 -07:00
kishanAnem
e1af5b8b6d
Array or List in query string does not get parsed #7712 ( #7967 )
...
- exclude collections when detecting complex types in `ApiBehaviorApplicationModelProvider`
- add test cases
2018-06-26 11:43:46 -07:00
Justin Kotalik
fac42c78a1
Re-enable flaky logging tests, add logs to output redirection providers, fix potential race condition in closing pipe output. ( #971 )
2018-06-26 11:28:56 -07:00
John Luo
423d5432be
Add test for ensuring HPACK lowercase header names
...
- ensure lowercase mask only applied to uppercase letters
2018-06-26 10:44:21 -07:00
Daniel Eisterhold
7101953c1e
Update TagHelperBlockRewriter.cs
2018-06-26 08:24:02 -07:00
Daniel Eisterhold
331f0b15cd
Update ServerConnection.cs
2018-06-26 07:54:07 -07:00
Steve Sanderson
2f548f0b27
Update BlazorLibrary template to use newer interop APIs
2018-06-26 14:00:50 +01:00
Steve Sanderson
a2bade57c3
Move Mono.WebAssembly.Interop project into "src" dir to match build conventions
2018-06-26 13:16:36 +01:00
Justin Kotalik
0d96354eef
Return static 500.30 file on startup fails for in-process ( #934 )
2018-06-25 17:12:30 -07:00
Dylan Dmitri Gray
e7e2ca50e9
Ping Cleanup ( #2530 )
...
Tidied up some comments, to make the ResetPing client behavior easier to understand.
Will ping in debug mode for consistency. If this becomes a problem when debugging, developers can disable the pings manually. It's easier to fix something noisy, than try to diagnose inconsistently missing behavior.
2018-06-25 17:09:05 -07:00
Pavel Krymets
4a0691a36c
Remove where.exe timeout ( #970 )
2018-06-25 15:14:59 -07:00
Daniel Little
554855cab3
No CORS headers sent if Exception is thrown
...
- Normally headers are added however if a controller throws an exception then CORS headers not be present.
Addresses aspnet/Home#3220
2018-06-25 14:00:30 -07:00
Ajay Bhargav Baaskaran
999c24d78d
Converted more parser tests to baselines
...
- Converted CSharpAutoCompleteTest
2018-06-25 11:43:17 -07:00
Pavel Krymets
bc345bc8e7
Reduce usage of static inprocess application ( #962 )
2018-06-25 08:46:16 -07:00
Pavel Krymets
d3d257b90e
Add tracing to shimconfig ( #964 )
2018-06-25 08:44:02 -07:00
Pavel Krymets
aeebcdefc1
Switch to tracing macros in application info ( #965 )
2018-06-25 08:38:46 -07:00
Pranav K
94a7c83998
Change DefaultApiConventions ( #7939 )
...
* Change DefaultApiConventions
* Introduce attributes for matching by name and type.
* Move discovery of ApiConventionAttribute to ApiBehaviorApplicationModelProvider. This is required
for us to detect during startup if the convention is incorrectly authored.
2018-06-25 08:24:30 -07:00
Steve Sanderson
b275055835
JavaScript interop v3 ( #1033 )
...
* JavaScript interop via new IJSRuntime abstraction
* CR feedback
2018-06-25 15:14:42 +01:00
Anthony Chu
dcd9cf7481
Add check for `wwwroot/` unix path separator ( #1018 )
2018-06-25 12:13:12 +01:00
Stefan Nikolei
61d6d71e8c
Fix right mouse click on <a href> in firefox ( #1010 )
...
* Check if the left mouse is pressed
* using button instead of which
2018-06-25 12:11:15 +01:00
Justin Kotalik
32121abde3
Fixes exit(0) with hostable webcore ( #966 )
2018-06-22 15:29:28 -07:00
Pavel Krymets
b12c9b33f7
Cleanup where.exe invocation ( #958 )
2018-06-22 07:36:46 -07:00
Pranav K
6911e192e4
Add IsRequired and DefaultValue to ApiParameterDescription
2018-06-22 06:51:58 -07:00
Ryan Nowak
30fcfb65ea
Productionize Path tokenization
2018-06-21 17:13:03 -07:00
Justin Kotalik
306ab78b88
Fix App_offline and start adding tests ( #953 )
2018-06-21 16:35:11 -07:00
James Newton-King
6efd679ce3
Fix TreeMatcher with route constraints ( #576 )
2018-06-22 10:33:44 +12:00
Pavel Krymets
cd81cfc243
Remove extra arguments from CreateApplication ( #952 )
2018-06-21 15:29:03 -07:00
Justin Kotalik
e5505ceefc
Fixing build issues ( #957 )
2018-06-21 12:32:13 -07:00
Pavel Krymets
93de3f83ce
Reenable precompiled headers in AspNetCore project ( #937 )
2018-06-21 11:32:56 -07:00
Chris Ross (ASP.NET)
61e16e2b31
Automation for h2spec functional tests #2640
2018-06-21 11:17:16 -07:00
Pranav K
17d2545b55
Throw if the type parameter for ActionResult<T> is an action result ( #7942 )
...
Fixes #7931
2018-06-21 07:51:12 -07:00
Pranav K
77693ccdc5
Use partial tag helper instead of Html.Partial to avoid analyzer warning
2018-06-20 16:51:51 -07:00
Pavel Krymets
ed1fa44a3d
Add diagnostics to hostfxrutil ( #951 )
2018-06-20 16:22:19 -07:00
N. Taylor Mullen
2599e0f5cc
Fix up a few pieces for the fallback integrity check feature.
...
- Regenerated test baselines.
- Update code styling in TagHelpers.
- Modified some comments for clarity.
- Renamed fallback integrity attribute for both script and link tags.
#7845
2018-06-20 16:10:52 -07:00
jmhmaine
8a77ed23d3
Added support for ignoring integrity attribute on fallback for the Link TagHelper
...
- Do not include integrity attribute when asp-fallback-intergrity-check is false
- Added Unit Tests, manual tests
Addresses #7845
2018-06-20 16:10:52 -07:00
Pranav K
4f7e849cc1
Setting up for ApiConventionAttribute analyzers ( #7912 )
...
* Setting up for ApiConventionAttribute analyzers
2018-06-20 15:22:53 -07:00
N. Taylor Mullen
fc17ee0749
Update Razor SDK packing logic to not include Pack at properties layer.
...
- Added test to verify that no-build scenarios work as expected.
#2378
2018-06-20 15:20:01 -07:00
Pranav K
6cdd622f23
Apply attribute to page model rather than handler
2018-06-20 14:24:35 -07:00
N. Taylor Mullen
c7e0207d9d
Revert "Update Razor SDK packing logic to not include Pack at properties layer."
...
This reverts commit 620105cc5e .
2018-06-20 11:39:55 -07:00
Chris Ross (ASP.NET)
324565772c
Prevent app code from blocking the connection loop #2657
2018-06-20 11:06:49 -07:00
Pranav K
c6cc1ef6d6
Apply attribute to page model rather than handler
2018-06-20 10:53:56 -07:00
Pavel Krymets
7977793d4f
Catch all exceptions on ANCM/IIS border ( #864 )
2018-06-20 09:27:42 -07:00
Justin Kotalik
1e823d88e2
Ignore case on handlerVersion ( #941 )
2018-06-20 09:11:19 -07:00
Pavel Krymets
0a97bf9ae8
Use lock wrapper in shim ( #936 )
2018-06-19 21:40:29 -07:00
Pranav K
e7ab81fe0b
Ensure analyzer package is referenced by Microsoft.AspNetCore.Mvc
...
Fixes #7684
2018-06-19 16:11:47 -07:00
Ajay Bhargav Baaskaran
b821ce8b8e
First step in converting parser tests to use baselines
...
- Added the necessary infrastructure to serialize and verify the syntax
tree
- Updated ParserVisitor to be overrideable
- Made CSharpVerbatimBlockTest to use baselines
2018-06-19 15:57:05 -07:00
N. Taylor Mullen
620105cc5e
Update Razor SDK packing logic to not include Pack at properties layer.
...
- We now rely on the Razor source inputs layer to add packing to cshtml content items.
#2378
2018-06-19 15:28:50 -07:00
Ajay Bhargav Baaskaran
17e3aa8ee4
Handle pipe name with whitespace properly
2018-06-19 15:10:49 -07:00
James Newton-King
3547341762
Add support for conventional routes with dispatching ( #7928 )
2018-06-20 09:02:52 +12:00
Pranav K
9677553a33
Don't specify MainEntryPoint when compiling Razor assembly
2018-06-19 13:31:49 -07:00
Pavel Krymets
b24a838301
Cleanup debug logging ( #932 )
2018-06-19 12:13:52 -07:00
Pavel Krymets
60711bfca1
Use std::filesystem in hostfxr utilities ( #926 )
2018-06-19 11:29:42 -07:00
Kiran Challa
a0a9c2c585
Integrate Dispatcher's link generator
...
Related to https://github.com/aspnet/Routing/issues/530
2018-06-19 04:14:05 -07:00
N. Taylor Mullen
41fad8a33a
Don't smart indent code inside of Razor block constructs.
...
- Prior to this change we weren't strict enough with where our smart indenter ran. We made the assumption that every code block could be smart indented and then Roslyn would "do the right thing". However, in nested code block scenarios we found that Roslyn and us would both indent resulting in extra newlines. These changes make the criteria for applying smart indentation a little stricter.
- Updated directive code block parsing to add a C# marker symbol in cases of an empty code block directive.
- Added unit tests to verify new smart indenter behavior.
- Updated existing tests to expect new syntax tree marker symbol for empty directive bits.
- Regenerated baselines.
#2410
2018-06-18 20:38:01 -07:00
N. Taylor Mullen
1aa15374b5
Add partial parsing of `@functions` directive body.
...
- Added ability to understand valid inserts, deletes and replacements for the `@functions` directive (and any other directive that uses our extensible code block bits).
- Added unit tests.
- Updated existing tests.
- Found an issue when completing some C# items the auto-completions would impact the underlying snapshot after we'd captured the change. Fixed this by forcing a reparse when we detect that our understanding of the latest snapshot and the actual latest snapshot diverge.
#2408
2018-06-18 17:11:40 -07:00
Chris Ross (ASP.NET)
c498f03cb4
Expose Tls details as a feature. #2661
...
Limit Http/2 to TLS 1.2 #2251
Bootstrap functional tests #2238
2018-06-18 16:25:18 -07:00
Chris Ross (ASP.NET)
baf5c7b3e2
Add back Hsts constructor #339
2018-06-18 12:16:23 -07:00
Henk Mollema
cfab182399
Revert "Inherit web IHostingEnvironment and IApplicationEnvironment from the Generic Host one ( #1461 )" ( #1467 )
...
This reverts commit 8672b1b04a .
2018-06-18 10:47:17 -07:00
Pranav K
a712ccc98a
Fix up error message when compilation references are missing
2018-06-18 09:20:08 -07:00
Henk Mollema
8672b1b04a
Inherit web IHostingEnvironment and IApplicationEnvironment from the Generic Host one ( #1461 )
2018-06-16 03:18:48 -07:00
Pranav K
dbf13d6538
Changes per PR comments
2018-06-15 13:53:38 -07:00
Pranav K
a57b7c4d7f
Don't discover tag helpers if some references are missing
...
A common cause for runtime view compilation failure in MVC is when an application is published
without reference assemblies. MVC usually handles this at compilation, by looking for specific
error codes. More recently, TagHelper discovery fails with an not-so-helpful error message in this
scenario. This change attempts to add a little more error checking to cover the most common cases
2018-06-15 13:53:38 -07:00
N. Taylor Mullen
d6f3a1bd22
Enable using directive IntelliSense auto-completion.
...
- Allow identical `@using` directives in the primary document. This means that if a user types `@using System` twice in the primary document (i.e. `Index.cshtml`) then we'll generate that using statement twice; this enables proper C# IntelliSense to light up on both using statements and allows auto-completion to work because there's no more magical distinction logic for Razor code that is in the current document.
- Prior to this change if you had two identical using statements in the same document one would be in no-mans land mapped to nothing (not C#, not HTML) and the other would be mapped to C#; the second a user differentiated the two statements (i.e. adding a `.`) we'd distinctify the using statements resulting in an invalid completion.
- This PR has an end-user impact where they will now receive the normal C# warning about having duplicate using. I treated this prior behavior more as a bug because we threw away the first using directive instance which impacted editing and in general was a silly thing to correct for the user.
- Added new integration test showing how using directives are not de-duplicated in the primary document.
#1255
2018-06-15 13:17:09 -07:00
Ryan Nowak
af63afdae7
Add partial parsing for parenthesis
...
- This is part of a fix for #1255 - this change enables signature help in implicit expressions by improving the partial parsing. We're now smart enough about the contents of an implicit expression and attempt to balance parenthesis to determine if we should not full parse.
#1255
2018-06-15 11:22:03 -07:00
Stephen Halter
14f020cf11
Improve tracking of connection lifetime ( #2646 )
2018-06-15 11:10:38 -07:00
Kiran Challa
6df28ef09a
Reach to Dispatcher changes and fix build break
2018-06-15 09:30:07 -07:00
Ryan Brandenburg
c2089f9902
Set 2.1 baselines
2018-06-14 16:46:13 -07:00
Ryan Brandenburg
d2dcd9c6b9
Set 2.1 baselines
2018-06-14 16:46:02 -07:00
Ryan Brandenburg
606b3c590f
Set 2.1 baselines
2018-06-14 16:43:31 -07:00
Ryan Brandenburg
1779625d74
Set 2.1 baselines
2018-06-14 16:43:22 -07:00
Ryan Brandenburg
aa24887d43
Set 2.1 baselines
2018-06-14 16:42:34 -07:00
Ryan Brandenburg
b8a488bf9e
Set 2.1 baselines
2018-06-14 16:42:18 -07:00
Justin Kotalik
b9b62932fa
Deleting commented out file
2018-06-14 16:27:00 -07:00
Justin Kotalik
7a93d69354
Adds shared request handler lib project ( #916 )
2018-06-14 15:51:24 -07:00
Kiran Challa
d3ddc1709a
Added initial support for link generation when using Dispatcher
2018-06-14 15:31:30 -07:00
Ryan Brandenburg
4295027333
Set 2.1 baselines
2018-06-14 14:12:20 -07:00
Ryan Brandenburg
555f36e12e
Set 2.1 baselines
2018-06-14 14:12:11 -07:00
Ryan Brandenburg
4cb04470a5
Set 2.1 baselines
2018-06-14 14:10:10 -07:00
Ryan Brandenburg
7423bb8702
Set 2.1 baselines
2018-06-14 14:10:02 -07:00
Ryan Brandenburg
22297278c4
Set 2.1 baselines
2018-06-14 11:40:34 -07:00
Ryan Brandenburg
2328792540
Set 2.1 baselines
2018-06-14 11:40:22 -07:00
Ryan Brandenburg
b59f5dd8d4
Set 2.1 baselines
2018-06-14 11:36:37 -07:00
Ryan Brandenburg
78fc556758
Set 2.1 baselines
2018-06-14 11:36:27 -07:00
Ryan Brandenburg
1e85713d75
Set 2.1 baselines
2018-06-14 11:29:34 -07:00
Ryan Brandenburg
a04813edc3
Set 2.1 baselines
2018-06-14 11:29:25 -07:00
Ryan Brandenburg
61ced27c18
Set 2.1 baselines
2018-06-14 11:21:42 -07:00
Ryan Brandenburg
23fc275786
Set 2.1 baselines
2018-06-14 11:21:34 -07:00
Ryan Brandenburg
e56fbce686
Set 2.1 baselines
2018-06-14 11:11:54 -07:00
Ryan Brandenburg
887353707e
Set 2.1 baselines
2018-06-14 11:11:43 -07:00
Ryan Brandenburg
7eac72ae46
Set 2.1 baselines
2018-06-14 11:09:28 -07:00
Ryan Brandenburg
78fc49ba0c
Set 2.1 baselines
2018-06-14 11:09:19 -07:00
Ryan Brandenburg
ee7d80881d
Set 2.1 baselines
2018-06-14 11:07:36 -07:00
Ryan Brandenburg
bb49eeebe6
Set 2.1 baselines
2018-06-14 11:07:25 -07:00
Ryan Brandenburg
4b93b75e78
Set 2.1 baselines
2018-06-14 11:06:20 -07:00
Ryan Brandenburg
1bbe161b4e
Set 2.1 baselines
2018-06-14 11:06:10 -07:00
Ryan Brandenburg
80a361c24c
Set 2.1 baselines
2018-06-14 10:13:59 -07:00
Ryan Brandenburg
f43646e7a1
Set 2.1 baselines
2018-06-14 10:07:39 -07:00
Ryan Brandenburg
f5ad156dd1
Set 2.1 baselines
2018-06-14 10:07:27 -07:00
Ryan Brandenburg
bbf1f62204
Set 2.1 baselines
2018-06-14 10:07:07 -07:00
Ryan Brandenburg
d1235cdda0
Set 2.1 baselines
2018-06-14 10:06:58 -07:00
Ryan Brandenburg
7922b27c65
Set 2.1 baselines
2018-06-14 10:06:06 -07:00
Ryan Brandenburg
a927c73805
Set 2.1 baselines
2018-06-14 10:05:58 -07:00
Ryan Brandenburg
191d2651fc
Set 2.1 baselines
2018-06-14 10:02:33 -07:00
Ryan Brandenburg
d1b1a8097b
Set 2.1 baselines
2018-06-14 10:02:28 -07:00
Ryan Brandenburg
b7c722bb68
Set 2.1 baselines
2018-06-14 09:37:25 -07:00
Ryan Brandenburg
c367db6226
Set 2.1 baselines
2018-06-14 09:36:28 -07:00
Peter Hsu
9a7ad90a8f
Revert stdout logging behavior to call SetStdHandle ( #907 )
2018-06-14 09:17:15 -07:00
pan-wang
2db54362a5
Panwang/shim ( #911 )
...
remove shim config from module context and remove application_info_key as we can use string directly
2018-06-13 21:52:52 -07:00
James Newton-King
a7406d4497
Add MvcEndpointDataSource and functional tests ( #7886 )
2018-06-14 11:03:45 +12:00
Ryan Brandenburg
5bed1972fe
Set 2.1 baselines
2018-06-13 15:47:53 -07:00
Ryan Brandenburg
3064b60b34
Set 2.1 baselines
2018-06-13 15:47:41 -07:00
Ryan Brandenburg
01ee9cbc80
Set 2.1 baselines
2018-06-13 15:47:13 -07:00
Ryan Brandenburg
01477ecf61
Set 2.1 baselines
2018-06-13 15:47:05 -07:00
Ryan Brandenburg
088bc2e37e
Set 2.1 baselines
2018-06-13 13:54:54 -07:00
Ryan Brandenburg
9215a8a3ee
Set 2.1 baselines
2018-06-13 13:54:40 -07:00
Justin Kotalik
1687eabcde
Revert "Revert "Load ANCM out of process via global versioning ( #895 )""
...
This reverts commit ec7f23308e .
2018-06-13 12:00:00 -07:00
Pranav K
287a3c5e69
Allow IgnoreAntiForgeryToken applied on Razor Page models to work
...
Fixes #7795
2018-06-13 11:59:47 -07:00
John Luo
13663e1e15
Convert to using definitions from HeaderNames
2018-06-13 11:24:24 -07:00
James Newton-King
9efa7665c9
Fix endpoint constraint cache ( #555 )
2018-06-13 16:40:06 +12:00
Mikael Mengistu
a4a8b49908
Removed extra reference to Internal.AspNetCore.Sdk ( #2475 )
2018-06-12 16:12:52 -07:00
Justin Kotalik
ec7f23308e
Revert "Load ANCM out of process via global versioning ( #895 )"
...
This reverts commit 9d97ff38f8 .
2018-06-12 15:26:25 -07:00
Nate McMaster
ff3f0e905d
Merge branch 'release/2.1' into release/2.1.2
2018-06-12 14:16:29 -07:00
Justin Kotalik
9d97ff38f8
Load ANCM out of process via global versioning ( #895 )
2018-06-12 14:04:21 -07:00
James Newton-King
6a6bd3f0da
Refactor TreeMatcher to not use async ( #552 )
2018-06-13 08:48:27 +12:00
Hao Kung
c66bd98a61
Don't hook cancellation tokens by default ( #1816 )
2018-06-12 13:39:36 -07:00
Justin Kotalik
f00d7b34c5
Revert out of process no new throw functionality ( #909 )
2018-06-12 08:51:56 -07:00
Justin Kotalik
cd71cc050e
Spleelin ( #910 )
2018-06-12 08:27:11 -07:00
James Newton-King
28d1bc4fa2
Fix TreeMatcher's use of EndpointSelector ( #551 )
2018-06-12 15:47:34 +12:00
Pranav K
6c2ef122f8
Add support for conventions in DefaultApiDescriptionProvider
2018-06-11 16:07:09 -07:00
Mike Harder
c5de0e1892
Pass timeout to WaitForExit() on "dotnet publish" ( #1453 )
...
* Addresses https://github.com/aspnet/Hosting/issues/1451
2018-06-11 15:09:58 -07:00
N. Taylor Mullen
dc76027a7a
Generate line pragmas even for whitespace.
...
- We need to pre-emptively generate line pragmas to handle C# scenarios which are session based. For instance, if a C# completion session starts at a location without a pragma they capture the origination point; at which point if a user keeps typing we generate a line pragma drastically changing where the copmletion started resulting in a broken C# completion experience.
- Updated test files to reflect new behavior.
#2299
2018-06-11 14:48:38 -07:00
James Newton-King
84bc8351c9
Initial endpoint constraints functionality ( #548 )
2018-06-12 09:43:17 +12:00
Chris Ross (ASP.NET)
a217206f1f
Enforce max frame size #2651
2018-06-11 14:20:43 -07:00
Mikael Mengistu
c7ebae47ea
Show detailed error message for HubExceptions ( #2461 )
2018-06-11 13:55:47 -07:00
Chris Ross (ASP.NET)
810a302e66
Disable AllowRenegotiation for HTTP/2
2018-06-11 13:51:23 -07:00
tstivers1990
dbe054ba6c
Fix /// comments
...
The returns tag incorrectly states that AddDefaultIdentity<T>
returns IServiceCollection when it actually returns IdentityBuilder.
2018-06-11 16:42:10 -04:00
BrennanConroy
0306038658
Return empty string for connectionId in some cases ( #2470 )
2018-06-11 12:50:34 -07:00
N. Taylor Mullen
b2ec939006
Make brace indenter smarter about making edits to non-valid content kinds.
...
- Prior to this change our brace smart indenter would indent JavaScript blocks incorrectly because it didn't take into account where in a Razor file the brace that it was indenting existed.
- Made it so the brace smart indenter only functions in code/metacode locations within the SyntaxTree.
- Updated and added tests to account for new behavior.
#2297
2018-06-11 10:34:26 -07:00
Pranav K
e403187be3
ResponseCache attribute on RazorPages Error handler method should be moved to model
...
Fixes #553
2018-06-11 10:15:13 -07:00
Ajay Bhargav Baaskaran
ad07036020
Use checksum for classname if filepath is null
2018-06-11 08:25:57 -07:00
Ryan Nowak
08f12f2bfd
Add sample matcher tests
2018-06-09 13:29:06 -07:00
Mikael Mengistu
dd64e4d9a5
Clean up Spec Test dependencies ( #2451 )
2018-06-08 15:28:23 -07:00
Brecht Carlier
203258d00e
Update AnchorTagHelper.cs
...
Fixed incorrect documentation
2018-06-08 15:13:28 -07:00
Pranav K
c29527f992
Add some assertions for controllers and controller actions
2018-06-08 15:00:19 -07:00
Pranav K
f2eb6f8d37
Add some tests for CodeAnalysisExtensions
2018-06-08 14:58:29 -07:00
Nate McMaster
b1b92385c0
Add unit tests for the shared framework
...
Changes:
* Add a test project with simple unit tests for the shared framework
* Add root-level Directory.Build.props/targets files
* Cleanup .csproj files to reduce duplication
2018-06-08 10:33:31 -07:00
James Newton-King
1b470f3d3b
Fix Endpoint order in TreeMatcher ( #542 )
2018-06-08 16:19:56 +12:00
Mikael Mengistu
e41764c161
Update AddSignalRCore to respect user registered services ( #2434 )
2018-06-07 16:32:37 -07:00
Chris Ross (ASP.NET)
00827e38bb
Harden TFM checks #2624
2018-06-07 14:56:23 -07:00
James Newton-King
48dd7a9688
Fix log order ( #540 )
2018-06-08 08:57:24 +12:00
Steve Sanderson
a1e613b717
When clicking <a> tag with no href, don't attempt navigation to "null". Fixes #943
2018-06-07 20:49:09 +01:00
Ryan Brandenburg
b7064c576d
Use templates for VSTS builds
2018-06-07 12:37:01 -07:00
Ryan Nowak
0fb47684c8
Fix #974
...
The root cause here was that we weren't setting the language version in
MSBuild, which is only for the command line version.
(cherry picked from commit 319e31f71a150e9b0d91e724f0e358390caec4c2)
2018-06-07 12:27:03 -07:00
Nate McMaster
9d58e41521
Update Microsoft.AspNetCore.SignalR.Specification.Tests.csproj ( #2449 )
2018-06-07 12:26:09 -07:00
James Newton-King
21f8ce5e95
Initial DispatcherMiddleware tests ( #529 )
2018-06-07 21:47:06 +12:00
Ryan Nowak
49f839a286
Add benchmarks for matcher implementations
2018-06-06 21:50:07 -07:00
Mikael Mengistu
648705f648
Create a Public Test Suite for HubLifetimeManager implementations ( #2353 )
2018-06-06 16:59:55 -07:00
James Newton-King
b27f032b43
Fix EndpointMetadataCollection filename ( #528 )
2018-06-07 09:15:50 +12:00
Ryan Nowak
e248f2fb2a
Rename a file
2018-06-06 09:30:24 -07:00
Nate McMaster
5ebf74fa32
Add certificate names for code signing ( #889 )
2018-06-06 08:55:18 -07:00
Steve Sanderson
783edcbf4c
Don't preventDefault on events. Fixes #803
2018-06-06 13:44:53 +01:00
Steve Sanderson
2492d00e75
Stylistic tweaks
2018-06-06 13:44:14 +01:00
Rémi BOURGAREL
3610068929
manages when users clicks on a link with the control button pushed. issue #867
2018-06-06 13:44:14 +01:00
Steve Sanderson
4427b3b773
Add more struct readonlyness hints
2018-06-06 11:49:55 +01:00
Todd Lang
1e866f7672
Refactoring SimpleJson.EatWhiteSpace
...
-Replacing arbitrary length IndexOf call with unrolled switch statement
-Reduces deserialization runtime on ~310KB test data from 13s to 5s.
2018-06-06 11:12:18 +01:00
Nate McMaster
83684abab4
Add certificate names for code signing
2018-06-05 22:34:33 -07:00
Nate McMaster
996af7ccdc
Add certificate names for code signing
2018-06-05 22:34:06 -07:00
Nate McMaster
672c794335
Add certificate names for code signing
2018-06-05 22:34:04 -07:00
Nate McMaster
124b6ba9a1
Add certificate names for code signing
2018-06-05 22:31:24 -07:00
Ryan Nowak
c5c1b375ec
Add more properties
2018-06-05 20:03:04 -07:00
Daniel Roth
13849a6739
Fix base type of UIErrorEventArgs
2018-06-05 20:03:04 -07:00
Ryan Nowak
cb186f494a
Add type checking for component parameters
...
Introduces a new primitive used by the compiler for type checking. Type
checking applies to component parameters when setting the value directly
and when using bind. This is nice because it also adds error checking
for bind.
2018-06-05 19:58:50 -07:00
Pranav K
592ed3b4f5
Create an analyzer to warn users not to decorate filters on page handler methods
...
Fixes #7684
2018-06-05 17:23:30 -07:00
Javier Calvarro Nelson
5cb544ece8
Improved interoperability
...
* Add support for invoking async JavaScript functions from .NET.
* Add support for invoking .NET methods from JavaScript.
* Add support for invoking async .NET methods from JavaScript.
2018-06-05 16:09:59 -07:00
Dylan Dmitri Gray
3d0f68b22c
server closes connections that have gone silent ( #2364 )
2018-06-05 15:21:55 -07:00
Suchiman
a3776b2a20
Add support for binding long / float / double / decimal
2018-06-05 16:42:31 +01:00
Ryan Nowak
1724c1bcbc
Fix #316
...
This change should hopefully end the MSBuild craziness that happens when
you add a file to the project using the VS Add Item dialog.
VS apparently has a behavior that intentionally tries to make sure the
added file is only included in a single itemgroup. So when Blazor
defines an itemgroup at the top level of scope with the same members as
Content - VS does some gymnastics to prevent it working.
The workaround is to defer the initialization of our itemgroup.
2018-06-05 08:35:47 -07:00
Simon Grimshaw
e1b08b2739
Removing dependency on redux-mock-store.
2018-06-04 16:25:44 -07:00
Simon Grimshaw
f7a9b6f6a3
Fixing issue in the react and redux template where the test would fail as its not wrapped in a router.
2018-06-04 16:25:44 -07:00
Justin Kotalik
1822992354
Fix null ref on ExeLocation not being set ( #884 )
2018-06-04 14:59:50 -07:00
Ryan Nowak
dc4be30d88
Rename Treenumerator -> TreeEnumerator
2018-06-01 21:33:30 -07:00
James Newton-King
81dde1a9f1
PR feedback
2018-06-01 21:33:30 -07:00
Ryan Nowak
0ea16ddd57
Code dump of dispatcher prototype code
...
Here's a code dump of the parts of the Dispatcher prototype codebase
that are needed to get us off the ground.
This first cut attempts to use part of routing where possible, and not
all of those changes will be long-lasting.
I'll leave comments through thoughout the PR for education.
2018-06-01 21:33:30 -07:00
Justin Kotalik
e1ae70166b
Improve logging architecture; add tests for logging and startup exceptions ( #858 )
2018-06-01 16:42:58 -07:00
Stephen Halter
0aff4a0440
Handle client and server aborts differently from eachhother ( #2612 )
...
* Trace when app aborts connection
* Improve exception messages
* Always abort connection with ConnectionAbortedException
* Add ConnectionContext.Abort(Exception)
2018-06-01 14:42:30 -07:00
Daniel Roth
5916d93118
Update survey links for 0.4.0
2018-06-01 09:17:12 -07:00
Justin Kotalik
f09edb3b5d
Target c++17 ( #881 )
2018-06-01 09:11:18 -07:00
Chris Ross
898586722c
Update HttpsPort comments ( #331 )
2018-06-01 09:06:17 -07:00
Ryan Nowak
5b40e3e121
Update versions to 2.1.0 (rtm)
2018-05-31 20:58:09 -07:00
Nate McMaster
e74907d6bf
Resolves #444 - remove workaround for CTRL+C deadlocks
2018-05-31 20:16:06 -07:00
kishan.anem
acea87a617
IUrlHelper and support for RouteOptions.LowercaseUrls
...
changes are made as suggestions.
@rynowak
#518
#Issue: aspnet/Mvc#7720
2018-05-31 20:07:01 -07:00
kishan.anem
cb77c17cf4
TestCase added and IUrlHelper and support for RouteOptions.LowercaseUrls
...
checked appliesd to the query string.
@rynowak
#518
#Issue: aspnet/Mvc#7720
2018-05-31 20:07:01 -07:00
kishan.anem
f227cbeca3
Added sperate option "IUrlHelper and support for RouteOptions.LowercaseUrls "
...
@rynowak
#518
#Issue: https://github.com/aspnet/Mvc/issues/7720
2018-05-31 20:07:01 -07:00
kishan.anem
695fb00308
IUrlHelper and support for RouteOptions.LowercaseUrls
...
IUrlHelper and support for RouteOptions.LowercaseUrls
#issue : https://github.com/aspnet/Mvc/issues/7720
2018-05-31 20:07:01 -07:00
N. Taylor Mullen
eaa5e30132
Add LiveShare test project to IVT.
2018-05-31 16:32:18 -07:00
Stephen Halter
aa9b9ca724
Merge branch 'release/2.1' into dev
2018-05-31 16:29:14 -07:00
Stephen Halter
e4d290b601
Fix Json regression in Socket Transport ( #2578 )
2018-05-31 16:28:25 -07:00
James Newton-King
4f85ca2b1d
Add connection ID scope to HubConnection ( #2394 )
2018-06-01 11:12:51 +12:00
Stephen Halter
d1416e679b
[2.1.1] Provide clearer exception message for breaking change ( #2623 )
...
- In 2.1, the default transport (Sockets) can no longer bind to certain
endpoint types (Unix domain sockets and open socket handles).
- The new message recommends manually selecting the libuv transport
to work around this issue.
2018-05-31 15:45:26 -07:00
Stephen Halter
af177c5adc
Add Memory<byte> overloads to HttpUpgradeStream ( #2622 )
2018-05-31 15:44:39 -07:00
Chris Ross (ASP.NET)
8d55a447d4
Allow running some IIS Express variants without publishing #1431
2018-05-31 15:15:04 -07:00
Pranav K
f0c552ee49
Fixup DebuggerDisplay for PageActionDescriptor
2018-05-31 13:47:39 -07:00
Stephen Halter
9e15b2bca4
Fix PipeReader consumption pattern [2.1]
2018-05-31 11:27:38 -07:00
Kiran Challa
a5fb8a3d3c
[ Fixes #523 ] Fix the jquery.min.js file in RazorPages web application
2018-05-30 16:01:45 -07:00
Javier Calvarro Nelson
54fe5f73ca
[ Fixes #528 ] Windows authentication is not applied on launchSettings.json
2018-05-30 14:22:25 -07:00
Javier Calvarro Nelson
74883b2cf0
[ Fixes #528 ] Windows authentication is not applied on launchSettings.json
2018-05-30 14:05:59 -07:00
Hao Kung
23e3ab6555
Add TestPortHelper class for tests ( #1438 )
...
* Add TestPortHelper class for tests
* Remove copy
* Update IISExpressDeployer
2018-05-30 13:55:46 -07:00
Chris Ross (ASP.NET)
7e43d35049
Make ListenOptions.Protocols public again for HTTP/2 work
2018-05-30 12:25:38 -07:00
N. Taylor Mullen
56d69db0fa
Add Razor document tracking to FallbackRazorProjectHost.
...
- VisualStudio defaults to adding a `<none>` link item when right click -> add existing item for Razor files; therefore, this also includes the knowledge of the "None" item group when finding Razor files.
- Added unit and functional tests to verify the new `FallbackRazorProjectHost` behavior.
- Added new schema items to represent the `Content` and `None` item type information (pulled from the project system repo).
#2373
2018-05-30 11:15:25 -07:00
Andrew Stanton-Nurse
c976d0aa6e
[2.1.1] Gracefully handle disposing while writing ( #2180 ) ( #2355 )
2018-05-30 10:33:31 -07:00
Andrew Stanton-Nurse
0452f460c6
Fix not reading to end of argument JSON on binding error ( #2319 ) ( #2360 )
2018-05-30 09:25:35 -07:00
Kiran Challa
2d63669695
[ Fixes #7609 ] ApiBehaviorApplicationModelProvider overwrites existing BindingInfo in entirety when inferring binding sources
2018-05-30 05:30:10 -07:00
Steve Sanderson
0e3b437dc1
Move <TemplateBlazorPackageVersion> prop to dependencies.props
2018-05-30 11:54:50 +01:00
Steve Sanderson
52a9e7a54d
Remove obsolete reference in Angular template home. Fixes #470
2018-05-30 11:22:14 +01:00
James Newton-King
8d680db112
Remove scanning connections log messages ( #2397 )
2018-05-30 15:29:46 +12:00
Stephen Halter
f80091a328
Merge branch 'release/2.1' into dev
2018-05-29 16:37:16 -07:00
Stephen Halter
5ec7bacdfe
Lower severity of AuthenticationException logs from SslStream handshake ( #2614 )
2018-05-29 16:27:16 -07:00
Pranav K
6e67c9345c
Remove reference to Microsoft.AspNetCore.Mvc.Razor.ViewCompilation from desktop templates
...
Fixes #530
2018-05-29 15:23:03 -07:00
Pranav K
9c3a331e4f
Allow publish to work when BuildProjectReferences=false
...
Fixes #2363
2018-05-29 15:17:01 -07:00
Nate McMaster
4eda3c378c
Merge branch 'release/2.1' into dev
2018-05-29 14:41:09 -07:00
Pranav K
984cd46c4d
Fix ActionMethodExecutor incorrectly setting DeclaredType on ObjectResult
...
Fixes #7782
2018-05-29 14:35:42 -07:00
Nate McMaster
0f12047271
Fix dependency versions for Hosting and Mvc.RazorPages
2018-05-29 14:27:47 -07:00
Andrew Stanton-Nurse
3fa10f92ad
Fix losing UTC DateTimeKind on ISO8601 UTC values ( #2317 ) ( #2357 )
2018-05-29 11:27:29 -07:00
Pranav K
8e31319215
Prevent null refs in some simple cases in CachedExpressionCompiler
...
Fixes #6928
2018-05-29 11:09:48 -07:00
Suchiman
0e5f9c2562
Use RestoreAdditionalProjectSources instead of RestoreSources
...
- The former is additive while the latter replaces the existing sources
2018-05-29 17:16:45 +01:00
Nikolei, Stefan
54eda39cb8
Update Anglesharp
2018-05-29 17:08:01 +01:00
Pavel Krymets
2a467bfd6d
Cleanup headers and enable MultiProcessorCompilation ( #845 )
2018-05-29 09:06:21 -07:00
Steve Sanderson
447359af84
Bump aspnet-webpack version to 3.0.0
2018-05-29 10:02:23 +01:00
Matt Perry
823630c508
Add webpack 4 support to aspnet-webpack
2018-05-29 09:58:04 +01:00
Ryan Brandenburg
edf4e8fd9e
DataAnnotations of Enum values use DataAnnotationLocalizerProvider
2018-05-25 16:00:00 -07:00
Dylan Dmitri Gray
f0f1df9b4a
PingInterval -> KeepAliveInterval ( #2384 )
2018-05-25 15:15:38 -07:00
Pavel Krymets
1f34c631d6
Fix P2P build order dependencies ( #871 )
2018-05-25 14:06:52 -07:00
Pranav K
1b6ca7f55a
Allow publish to work when BuildProjectReferences=false
...
Fixes #2363
2018-05-25 11:13:26 -07:00
Justin Kotalik
d041f89c9d
Remove E_OUTOFMEMORY check for new. ( #863 )
2018-05-25 09:30:06 -07:00
Rutger Storm
a3300a6a60
Add try..finally around RunAsync and WaitForTokenShutdownAsync #1194
...
The try..finally ensures that the ManualResetEventSlim which AttachCtrlcSigtermShutdown uses is set even when an exception occurs in these two methods.
2018-05-25 09:21:26 -07:00
Pranav K
94e0ecca73
Compiling a 2.1.0 project targeting desktop with a reference to the ViewCompilation package produces a warning about mismatch in architectures
...
Fixes #270
2018-05-24 16:19:26 -07:00
Kiran Challa
418aac57f4
[ Fixes #7609 ] ApiBehaviorApplicationModelProvider overwrites existing BindingInfo in entirety when inferring binding sources
2018-05-24 14:28:42 -07:00
Steve Sanderson
9e17d93acf
Remove obsolete reference in Angular template home. Fixes #470
2018-05-24 21:11:59 +01:00
Chris Ross (ASP.NET)
48a9013e08
Do not overwrite ContentRoot #267
2018-05-24 11:18:31 -07:00
Pavel Krymets
4932fca0d9
Fix the build
2018-05-24 11:14:04 -07:00
Pranav K
c6b5001149
Remove reference to Microsoft.AspNetCore.Mvc.Razor.ViewCompilation from desktop templates
...
Fixes #530
2018-05-24 09:27:17 -07:00
Nate McMaster
83134227ab
Add support for DOTNET_WATCH_ITERATION ( #443 )
...
This environment variable can be used to determine how many types the inner command has been re-launched
Resolves #387
2018-05-24 08:24:56 -07:00
Pavel Krymets
1e143c71c6
Add Hostable Web Core based inprocess test server ( #853 )
2018-05-24 08:11:40 -07:00
Steve Sanderson
5dc5404570
Add notes on how to upgrade Mono, plus modify some files to make future
...
upgrades simpler
2018-05-24 15:55:01 +01:00
Steve Sanderson
353da42cce
Clean up use of relative URLs. Fixes #844 and #845 ( #878 )
...
* Handle links to empty-string href, resolved against base href
Needed to change the URLs used in E2E tests to be able to cover this (i.e., removed the /RouterTest prefixes so the default relative URL became an empty string)
* Change links in StandaloneApp sample to be relative
* Standardize on base URIs having trailing slash everywhere
Hence also change terminology from "base URI prefix" to simply "base URI"
* Handle link highlighting when visiting base-href-but-without-trailing-slash
* Removing leading slashes from base-relative URLs in templates
2018-05-24 09:54:43 +01:00
James Newton-King
02a9bde10d
Fix flaky ClientPingsMultipleTimes test ( #2368 )
2018-05-24 17:29:15 +12:00
James Newton-King
5c633aa183
Log 404 responses from long polling transport DELETE as Debug instead of Error ( #2366 )
2018-05-24 14:21:48 +12:00
Dylan Dmitri Gray
736b7f5042
Client pings server on interval ( #2309 )
2018-05-23 13:53:23 -07:00
Chris Ross (ASP.NET)
09d3b32fe5
Enable x86 testing #949
2018-05-23 09:35:26 -07:00
Tim Hess
0f18ff1b9f
Include AuthenticationTicket.Properties in AuthenticationTicket success result handling #1765 ( #1767 )
2018-05-23 08:25:19 -07:00
Steve Sanderson
7f3ba97fb7
Handle ChildContent that starts with an HTML element. Fixes #875
2018-05-23 15:57:48 +01:00
Steve Sanderson
9c567a0be4
Remove license notices from template output. Fixes #824
2018-05-23 11:12:48 +01:00
Robin Sue
b5128a7efd
Add support for sending and receiving arbitrary HttpContent, refs #479 ( #815 )
...
* Add support for zero copy byte array marshalling
* Add support for sending arbitrary HttpContent, refs #479
* Fix unit test to set ContentType correctly
* Add support for receiving binary data
* Compare header case insensitive
* Add unit test for binary http requests
2018-05-23 10:16:27 +01:00
N. Taylor Mullen
93d8a93498
Enable serialization of `TagHelperDescriptor`s.
...
- Added ability for TagHelpers to write their own json output.
2018-05-22 16:48:26 -07:00
Stephen Halter
a9d6cf13eb
Consistently handle connection resets ( #2547 )
2018-05-22 16:38:21 -07:00
Ryan Nowak
c6148b6fe6
Fix #784 - allow complex content for HTML
...
The logic that binds event handlers was interfering with the code that
prevents component properties from receiving complex content.
This check was a little overzealous.
2018-05-22 11:58:46 -07:00
Ajay Bhargav Baaskaran
f9d4fba39d
Added a taghelpers and imports overload to Process and ProcessDesignTime
...
We want to have a way to specify the taghelper descriptors and imports to use while
processing a specific document.
- Added an overload to Process and ProcessDesignTime to take in a list
TagHelperDescriptors and a list of imports
- Added the corresponding CreateCodeDocumentCore overload
- Added GetTagHelpers and SetTagHelpers extension methods for
CodeDocument
- Added the necessary plumbing to use the taghelpers from the
CodeDocument when available and fallback logic.
- Added DocumentImportsTracker and updated background code generation
logic to use the new overload
- Added/updated tests
2018-05-22 11:40:21 -07:00
Ryan Nowak
a88b24ed76
Resolves #297
...
Removes the workaround for #297 and sets the langauge version to
experimental.
This will require 2.1.0-rc of Razor.
2018-05-22 11:10:15 -07:00
Ryan Nowak
eeed731587
Update ASP.NET Core dependencies to RC
2018-05-22 11:10:15 -07:00
Pranav K
49c653ed0b
Infer BindingSource.FormFile for IEnumerable<IFormFile>
...
Fixes #7770
2018-05-22 11:05:09 -07:00
Nisha Kaushik
077b1d87a9
#7024 Request: ServiceBasedPageModelActivatorProvider [Review Changes]
2018-05-22 10:23:08 -07:00
Nisha Kaushik
0c795c4f33
#7024 Request: ServiceBasedPageModelActivatorProvider
2018-05-22 10:23:08 -07:00
Attila Hajdrik
480691d3ed
Convert the member names to camelCase for interfaces/class/types getting marshalled to C# side.
2018-05-22 13:19:09 +01:00
Gutemberg Ribeiro
ad501dc77f
Event payloads for DOM event types
2018-05-22 13:12:55 +01:00
Steve Sanderson
866368192f
Remove launchSettings.json from standalone template now we support
...
running on IISExpress by default
This reverts commit 84e6d259af314a9564521033d069dd30ac1fe8e8.
2018-05-22 13:02:59 +01:00
Steve Sanderson
e33cb4a354
Simple autorebuild mechanism for hosted apps ( #787 )
...
* Simple autorebuild mechanism for hosted apps
* CR feedback: DI changes; use Directory.EnumerateFiles
* CR feedback: Ensure FileSystemWatcher isn't GCed
2018-05-22 13:02:36 +01:00
N. Taylor Mullen
59baad17da
Merge branch 'rel/vs15.8' into dev
2018-05-21 10:48:16 -07:00
Ryan Nowak
4ac8b21978
Fix dispose logic for EditorDocument
...
This could throw when the document is disposed and wasn't open in the
editor.
Improved the tests to cover dispose as well for both cases.
2018-05-20 16:39:46 -07:00
Ryan Nowak
a35ef53891
Fix mef attributes project path provider
2018-05-19 13:06:24 -07:00
James Newton-King
e29296220d
Fix not reading to end of argument JSON on binding error ( #2319 )
2018-05-19 19:50:43 +12:00
James Newton-King
879646aba3
Fix losing UTC DateTimeKind on ISO8601 UTC values ( #2317 )
2018-05-19 18:43:14 +12:00
James Newton-King
96bbe70cd8
Handle incoming HTTP requests being canceled gracefully ( #2314 )
2018-05-19 13:32:05 +12:00