Commit Graph

162 Commits

Author SHA1 Message Date
Nate McMaster cfc1320ee2 Add support for source-build (dotnet/extensions#1740)
\n\nCommit migrated from ad4067b012
2019-05-23 16:33:55 -07:00
Nate McMaster 213076ff4b Obsolete TestPathUtilities (dotnet/extensions#1698)
\n\nCommit migrated from da5dee978f
2019-05-21 14:18:22 -07:00
Larry Ewing 2706bc5610 Add comment about not using an exception filter
\n\nCommit migrated from b6abd65ea2
2019-05-07 17:44:59 -07:00
Larry Ewing 10e316f541 Remove the exception filter that is problematic for wasm AOT
\n\nCommit migrated from b3cdc7bd5d
2019-05-07 17:44:59 -07:00
Nate McMaster 3a1330b7ac Enable resx source generation (dotnet/extensions#1635)
\n\nCommit migrated from ad92508be6
2019-05-03 12:04:29 -07:00
dotnet-maestro[bot] d1aa9055ce Update dependencies from dotnet/arcade and re-generate reference source code (dotnet/extensions#1458)
\n\nCommit migrated from 996c25be27
2019-04-22 16:37:47 -07:00
Andrew Stanton-Nurse 188c45965a skip flaky attribute tests, they're just too annoying (dotnet/extensions#1476)
\n\nCommit migrated from 97bd314988
2019-04-19 10:19:59 -07:00
viktorpeacock f86f24b50a Tags defined during health check registration are now available in th… (dotnet/extensions#1434)
* Tags defined during health check registration are now available in the health report entries.

* Additional constructor that accepts tags. Original constructor now calls a new one.

* Update reference assemblies
\n\nCommit migrated from 8eaeab2a69
2019-04-17 08:10:12 -07:00
David Fowler 7f5f019101 Remove target invocation exceptions (dotnet/extensions#1413)
- Use BindingFlags.DoNotWrapExceptions to invoke\n\nCommit migrated from 0b1aa473a7
2019-04-12 23:21:12 -07:00
Justin Kotalik 76e0fc251c Add Repeat attribute (dotnet/extensions#1375)
\n\nCommit migrated from 13a00b0557
2019-04-09 14:03:12 -07:00
Ryan Nowak f5c756c935 Fix dotnet/extensions#8612 JSInterop throws truncated call stack
The fix for this is to use more ExceptionDispatchInfo! Basically
everwhere that we handle an exception is now an EDI. It's easy to pass
these around and they do the right thing as far as perserving the stack
in.

I de-factored this code a little bit to make all of this work, but it's
now pretty unambiguously correct upon inspection.

I started out wanting to get rid of the continue-with because we've
found that pretty error prone overall. However making this method
async-void started to ask more questions than it answered. What happens
if serialization of the exception fails?
\n\nCommit migrated from 0a27fd3ad6
2019-03-28 09:52:15 -07:00
dotnet-maestro[bot] a8a3fbab33 [master] Update dependencies from dotnet/arcade (dotnet/extensions#1279)
* Update dependencies from https://github.com/dotnet/arcade build 20190321.6

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19171.6
- Microsoft.DotNet.GenAPI - 1.0.0-beta.19171.6
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19171.6

* Use Arcade NuSpec helpers

* Fix Release flaky test leg

* Fix Release flaky non-Windows test legs

* Update dependencies from https://github.com/dotnet/arcade build 20190325.9

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19175.9
- Microsoft.DotNet.GenAPI - 1.0.0-beta.19175.9
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19175.9

* Update dependencies from https://github.com/dotnet/arcade build 20190326.14

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19176.14
- Microsoft.DotNet.GenAPI - 1.0.0-beta.19176.14
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19176.14
\n\nCommit migrated from d353f7b020
2019-03-27 14:40:19 +00:00
Ryan Nowak 2849483895 Make IHealthCheckService work in ST-sync-context
\n\nCommit migrated from 2b673c89c2
2019-03-23 20:26:53 -07:00
Ryan Nowak ffc4b00764 Generalize and harden ST-sync-context
\n\nCommit migrated from 247bb34a63
2019-03-23 20:26:53 -07:00
Andrew Stanton-Nurse 2d1743a2f6 clean up flaky filter constants (dotnet/extensions#1248)
\n\nCommit migrated from 3b3a23eb1a
2019-03-19 18:43:25 -07:00
Javier Calvarro Nelson c9ff2af852 Skip test until we move to the new .NET Core implementation (dotnet/extensions#1156)
\n\nCommit migrated from 4636215c9b
2019-03-11 18:00:14 +01:00
Kévin Chalet 3e9a592422 Make the generic IStringLocalizer interface covariant (dotnet/extensions#1117)
Make the generic IStringLocalizer interface covariant
\n\nCommit migrated from 90020a9608
2019-03-07 15:42:29 -08:00
Hao Kung d5a386b0a9 Remove newtonsoft ref and sharedsource false flag (dotnet/extensions#1219)
\n\nCommit migrated from d563ecb057
2019-03-07 12:25:22 -08:00
Andrew Stanton-Nurse d9627c80ef add FlakyAttribute to mark flaky tests (dotnet/extensions#1222)
part of aspnet/AspNetCoredotnet/extensions#8237\n\nCommit migrated from 42e9a7d712
2019-03-06 15:19:11 -08:00
Martin Costello b13ea4cd54 Use localhost for HttpListener (dotnet/extensions#1206)
Use localhost instead of 127.0.0.1 to fix dotnet/extensions#1205.\n\nCommit migrated from 99b4ddbdbc
2019-03-05 09:43:59 -08:00
Martin Costello 09b9a49da6 Atomically swap config data (dotnet/extensions#1202)
Swap the configuration providers' data atomically, rather than directly changing the property, so that any enumeration of the dictionary running during the reload operation does not throw an InvalidOperationException due to the collection being modified.
Relates to dotnet/extensions#1189.\n\nCommit migrated from 192abfdf3e
2019-03-04 10:14:16 -08:00
Ryan Nowak a623a5c20f Fix dotnet/extensions#598 and dotnet/extensions#684
Pass args into type activator
\n\nCommit migrated from a787ee2870
2019-02-22 18:07:16 -08:00
Nathanael Marchand 7960bde7da Implement Timeout
\n\nCommit migrated from 50593c9336
2019-02-22 17:36:05 -08:00
Nathanael Marchand 1f05a66661 Take in account code review for test
\n\nCommit migrated from 49bf9920e4
2019-02-21 13:15:27 -08:00
Nathanael Marchand 30c6051d3c Take in account code review
\n\nCommit migrated from ecea8c802e
2019-02-21 13:15:27 -08:00
Nathanael Marchand d805cf3b2e Implement parallel health checks
\n\nCommit migrated from f14a45e096
2019-02-21 13:15:27 -08:00
Ryan Brandenburg 58ea57e63f Obsolete ResourceManagerWithCultureStringLocalizer and WithCulture (dotnet/extensions#1133)
Obsolete ResourceManagerWithCultureStringLocalizer and WithCulture
\n\nCommit migrated from 924015e98b
2019-02-20 11:43:55 -08:00
Pavel Krymets ffd47e1bd8 Manualy update tooling dependencies to normalize names (dotnet/extensions#1135)
* Manualy update tooling dependencies to normalize names

* Nullable
\n\nCommit migrated from 77db8d2b6b
2019-02-19 17:25:53 -08:00
Pranav K a4cd6152b6 Make JSRuntime.Current non-public (dotnet/extensions#1118)
Fixes https://github.com/aspnet/AspNetCore/issues/6828\n\nCommit migrated from c1d8be8b98
2019-02-19 13:01:13 -08:00
Ryan Nowak 491cbdd119 Update ObjectPool reference assemblies
\n\nCommit migrated from f13113c06b
2019-02-17 12:59:24 -08:00
Günther Foidl 5e19936a9f PR Feedback
* DefaultObjectPool left unchanged (expect access modifiers) + manual inlining ob scan-methods
* DisposableObjectPool made internal and it handles Return self, thus keeping the DefaultObjectPool fast
\n\nCommit migrated from a7dc496507
2019-02-16 16:57:08 -08:00
Günther Foidl 033b118a96 DefaultObjectPoolProvider chooses on T and added factory method to ObjectPool
\n\nCommit migrated from 17883d97a9
2019-02-16 16:57:08 -08:00
Günther Foidl b9912fee6b DisposableObjectPool added
\n\nCommit migrated from 6bcb1aee83
2019-02-16 16:57:08 -08:00
Chris Ross c960040b53 Deprecate and replace IHostingEnvronment & IApplicationLifetime (dotnet/extensions#1100)
* Deprecate and replace IHostingEnvronment & IApplicationLifetime dotnet/extensions#966
* Fix startvs
* Fix ref generation for obosolete\n\nCommit migrated from 6991e2b0e8
2019-02-15 13:40:33 -08:00
Glenn Condron dfb5977324 Update HealthCheckPublisherOptions.cs
This seems wrong.

Presumably fixes: https://github.com/aspnet/Extensions/issues/1041\n\nCommit migrated from b3c88d78fe
2019-02-13 10:55:36 -08:00
Pavel Krymets 39b6a19f90 Add reference assembly generations support (dotnet/extensions#1093)
\n\nCommit migrated from 8ad1395c91
2019-02-11 12:10:15 -08:00
marciomyst 2c0287d686 Fix ignored exception parameter on Degraded method
The 'exception' parameter was ignored and a hardcoded null value was used on HealthCheckResult.Degraded\n\nCommit migrated from dbfc2dee3a
2019-02-08 10:38:35 -08:00
Pranav K b47bd17894 Publish Microsoft.Interop.Js and Mono.WebAssembly.Interop (dotnet/extensions#1048)
* Publish Microsoft.Interop.Js and Mono.WebAssembly.Interop
\n\nCommit migrated from bc2e7150f0
2019-02-01 14:12:49 -08:00
Nate McMaster a663bcf605 Add code check CI tests, add docs about ReferenceResolution, and other cleanups (dotnet/extensions#1044)
Changes:
* Add a step which checks that generated code is up to date
* Copy over the documentation on how to work with `<reference>` 
* Fixup a broken reference in the .sln
* Fix the casing on Microsoft.Extensions.ValueStopwatch.Sources
* Remove some unused references and variables\n\nCommit migrated from 92acd8b959
2019-02-01 10:33:04 -08:00
Nate McMaster bbca5f30e7 Remove implicit references for non-test projects (dotnet/extensions#1037)
\n\nCommit migrated from e504b4ee74
2019-01-31 13:20:34 -08:00
Kahbazi 070bba8ad4 Add event name in localization\n\nCommit migrated from d2b1ad3d23 2019-01-30 10:03:04 -08:00
Nate McMaster 154ab28e45 Cleanup conversion to Arcade (dotnet/extensions#1014)
* Remove obsolete targets, properties, and scripts
* Replace IsProductComponent with IsShipping
* Undo bad merge to version.props
* Update documentation, and put workarounds into a common file
* Replace usages of RepositoryRoot with RepoRoot
* Remove API baselines
* Remove unnecessary restore feeds and split workarounds into two files
* Enable PR checks on all branches, and disable autocancel\n\nCommit migrated from f41cfded3c
2019-01-29 18:34:54 -08:00
Ryan Brandenburg fb64cd6887 Reduce build times (dotnet/extensions#1016)
* Fix package artifacts taking too long to upload
* Make sure new packages are packaged
\n\nCommit migrated from 12613bac07
2019-01-29 17:05:25 -08:00
Ryan Brandenburg 66773c57bc Use Arcade (dotnet/extensions#586)
Use arcade
\n\nCommit migrated from f0458995c6
2019-01-29 13:26:53 -08:00
Pranav K 33ee3dc379 Refactoring to do KoreBuild \ mondorepo
\n\nCommit migrated from 3a884e2e1e
2019-01-09 15:53:30 -08:00
Pranav K d7b1934149 Merge branch 'prkrishn/move' into prkrishn/add-interop
\n\nCommit migrated from 6c6095d41f
2019-01-09 15:29:06 -08:00
Chris Ross 4de3b5e105 Move the HostFactoryResolver to Extensions (dotnet/extensions#925)
\n\nCommit migrated from 9cd9cea398
2019-01-09 13:38:12 -08:00
Pranav K 97bb8897cf Reorganize code
\n\nCommit migrated from a24412cc03
2019-01-09 11:12:33 -08:00
Nate McMaster ee6763d146 Merge branch 'release/2.2'
\n\nCommit migrated from 604018cb12
2019-01-07 16:23:11 -08:00
Nate McMaster 16c7cbba45 Merge branch 'release/2.1' into release/2.2
\n\nCommit migrated from 6e758d41c1
2019-01-07 15:58:24 -08:00
Nate McMaster 3db4f50eac Remove netcoreapp2.0 test TFMs (dotnet/extensions#907)
.NET Core 2.0 reached EOL last year. This removes multi-targeting our test projects and test assets to only use .NET Core 2.1 and .NET Framework 4.6.1.\n\nCommit migrated from 084494d21d
2019-01-07 15:52:44 -08:00
James Newton-King 3287fba28f Don't timeout in testing task extensions when debugger is attached (dotnet/extensions#903)
\n\nCommit migrated from 24c84a5b1d
2019-01-07 15:37:53 +13:00
Pavel Krymets bdc2ea81c0 Unify TypeNameHelpers (dotnet/extensions#876)
\n\nCommit migrated from 2f53c36195
2018-12-31 12:54:54 -08:00
Ryan Nowak ebb5522f00 Fix aspnet/Extensionsdotnet/extensions#639
The issue is that the hosted service would not be registered if other
hosted services are present. The fix is to use TryAddEnumble so that we
allow multipled `IHostedService`s but not multiple instances of
the same type.
\n\nCommit migrated from a2f28147c2
2018-12-23 23:37:02 -08:00
Nate McMaster 5f7ab102cf Fix dotnet/extensions#815 - fix path to embedded manifest task file
\n\nCommit migrated from cab86d2e36
2018-12-19 13:43:43 -08:00
Arthur Vickers 6d45c06807 Method to get source for each configuration element
Fixes dotnet/extensions#609 by allowing the configuration paths to be associated with values to help with debugging.
\n\nCommit migrated from d7f8e253d4
2018-12-17 16:51:20 -08:00
Nate McMaster b330870678 Merge branch 'release/2.2'
\n\nCommit migrated from 8c833ae5fb
2018-12-14 09:34:37 -08:00
Nate McMaster 93b7e57a30 Merge branch 'release/2.1' into release/2.2
\n\nCommit migrated from 0a705e33a5
2018-12-14 08:43:08 -08:00
Nate McMaster 4fcd97e4d2 Remove Microsoft.Extensions.WebEncoders.Sources
\n\nCommit migrated from e7bb41b9bf
2018-12-13 11:41:24 -08:00
Nate McMaster cb018faf53 Remove Microsoft.Extensions.StackTrace.Sources
\n\nCommit migrated from 1713ada32d
2018-12-13 11:39:54 -08:00
Nate McMaster 01a4a273d7 Remove Microsoft.Extensions.SecurityHelper.Sources
\n\nCommit migrated from c41abe44af
2018-12-13 11:26:34 -08:00
Nate McMaster e0051303d1 Remove Microsoft.Extensions.RazorViews.Sources
\n\nCommit migrated from 3f5df6ddbc
2018-12-13 11:19:00 -08:00
Nate McMaster 921060b2ca Remove Microsoft.Extensions.PropertyActivator.Sources and Microsoft.Extensions.PropertyHelper.Sources
\n\nCommit migrated from 6c11818fe9
2018-12-13 11:15:55 -08:00
Nate McMaster bbf0ebdd91 Remove Microsoft.Extensions.ObjectMethodExecutor.Sources
\n\nCommit migrated from 71a672e287
2018-12-13 11:04:12 -08:00
Nate McMaster 2f36a1ecf9 Remove Microsoft.Extensions.ClosedGenericMatcher.Sources
This code isn't used locally, so it will move to aspnet/AspNetCore
\n\nCommit migrated from 7305817fea
2018-12-13 11:01:34 -08:00
Nate McMaster e8d84a1962 Remove Microsoft.Extensions.CopyOnWriteDictionary.Sources
This code will move to aspnet/AspNetCore
\n\nCommit migrated from 468940be7f
2018-12-13 10:43:02 -08:00
Nate McMaster 2d001bb583 Stop producing Microsoft.AspNetCore.Certificates.Generation.Sources
This was only used in the aspnet/AspNetCore repo. so the source for this project is moving to that repo
\n\nCommit migrated from 9290dc1dbc
2018-12-13 10:37:41 -08:00
Nate McMaster a053c7e1a4 Stop producing Microsoft.Extensions.Process.Sources
This was only used in the aspnet/AspNetCore repo. so the source for this project is moving to that repo
\n\nCommit migrated from 98522c18fb
2018-12-13 10:33:33 -08:00
Nate McMaster 317b4bb4eb Create README.md for the localization folder (dotnet/extensions#683)
\n\nCommit migrated from c841b4f9e0
2018-12-13 09:49:07 -08:00
Arthur Vickers 57cd32129b Added tests that can be implemented for any provider to ensure consistency
Partly to allow me to get a better understanding of the code, partly so we can have a better idea that all the providers work in a consistent manner.

Part of https://github.com/aspnet/Configuration/issues/559

I will file issues for things found.
\n\nCommit migrated from 1878d16ecd
2018-12-07 15:38:52 -08:00
Nate McMaster a81d3d1b06 Merge the master branch of aspnet/Localization
\n\nCommit migrated from 622c150de5
2018-12-04 10:48:40 -08:00
Nate McMaster 2987427e1a Merge branch 'release/2.2'
\n\nCommit migrated from 75b156c635
2018-12-04 10:48:16 -08:00
Nate McMaster 6920d910de Merge branch release/2.1 into release/2.2
\n\nCommit migrated from 909256fb24
2018-12-04 10:43:32 -08:00
Nate McMaster e7c4b678f9 Reorganize source code in preparation to move into aspnet/Extensions
Prior to reorganization, this source code was found in https://github.com/aspnet/Localization/tree/dotnet/extensions@60a3d57a3e8b8b6d69232815a9596b5a495a7d0b
\n\nCommit migrated from b885414e8a
2018-12-04 10:40:35 -08:00
Nate McMaster 090119859b Update targets and tasks to build Localization projects
\n\nCommit migrated from 22f5402e13
2018-12-03 16:22:29 -08:00
Nate McMaster cd7daf64a2 Merge source code from aspnet/Localization
\n\nCommit migrated from 9c7e86f4dc
2018-12-03 16:22:15 -08:00
Nate McMaster e5fee282ab Reorganize source code in preparation to move into aspnet/Extensions
Prior to reorganization, this source code was found in https://github.com/aspnet/Localization/tree/dotnet/extensions@0bcac31dd705fb9db60723f5d7eaeffb728358f5
\n\nCommit migrated from c8e0450d7a
2018-12-03 16:17:41 -08:00
Nate McMaster fcdba6256a Merge branch 'release/2.2'
\n\nCommit migrated from 39e7539b49
2018-11-21 13:19:48 -08:00
Nate McMaster 0c234eee22 Merge HealthChecks API source code from aspnet/Diagnostics
\n\nCommit migrated from 47a4cce17b
2018-11-20 21:07:51 -08:00
Nate McMaster 6dc295b578 Reorganize source code in preparation to move into aspnet/Extensions
Prior to reorganization, this source code was found in https://github.com/aspnet/Diagnostics/tree/dotnet/extensions@c802d5ef5fba1ba8dfbcb8c3741af2ba15e9d1aa
\n\nCommit migrated from a03861270c
2018-11-20 20:49:10 -08:00
Pavel Krymets ebb1165b14 Handle nullable enum default values (dotnet/extensions#531)
\n\nCommit migrated from 33f839d585
2018-11-16 13:57:43 -08:00
Pavel Krymets 6c5d291b10 Remove internal types from Logging and Abstractions (dotnet/extensions#513)
\n\nCommit migrated from 55518d7983
2018-11-16 08:33:57 -08:00
Nate McMaster fe4ed663a2 Merge branch 'release/2.2'
\n\nCommit migrated from c5307c9984
2018-11-15 11:01:39 -08:00
Nate McMaster 88003f2c21 Prepare repo to build 2.2.1
* Update dependencies to 2.2.0 rtm
* Update branding to 2.2.1
* Update package baselines to 2.2.0
* Add a restore source for 2.2.0 RTM
\n\nCommit migrated from 913f74d590
2018-11-14 08:44:28 -08:00
Nate McMaster c36f22815b Merge branch 'release/2.2'
\n\nCommit migrated from 53fa5cb66d
2018-11-13 14:27:32 -08:00
Nate McMaster 4bd742a4fe Merge branch 'release/2.1' into release/2.2
\n\nCommit migrated from 0a5741dc30
2018-11-13 11:01:56 -08:00
Javier Calvarro Nelson ea14c9c865 Change async void tests to async Task (dotnet/extensions#488)
\n\nCommit migrated from d2f4c6a2ed
2018-11-13 10:11:21 -08:00
Gert Driesen 83c88bd6bd Eliminate use of method groups in PropertyHelper (dotnet/extensions#465)
* Eliminate use of method groups, and use for loop to enumerate elements of array.

Improves performance and reduces allocations.

* PR feedback:
Remove extra parentheses, and undo change from foreach to for loop.

* PR feedback
Revert change from for to foreach.

* var-ify TryGetValue out parameter.
\n\nCommit migrated from 08adb5c2ca
2018-11-13 10:03:55 -08:00
Nate McMaster d3a479cd5c Merge the source code for Microsoft.Extensions.WebEncoders
\n\nCommit migrated from ca683f396d
2018-11-09 17:13:41 -08:00
Nate McMaster aa26d515be Reorganize source code in preparation to move into aspnet/Extensions
Prior to reorganization, this source code was found in https://github.com/aspnet/HtmlAbstractions/tree/dotnet/extensions@252ae0c434d93f5bfaf949c35edb9ef59730d0a3
\n\nCommit migrated from 6c2bf29434
2018-11-09 15:53:41 -08:00
Nate McMaster 122c2c78e2 Merge branch 'release/2.2'
\n\nCommit migrated from 5054f8a0e5
2018-11-06 11:07:40 -08:00
Nate McMaster 1d3bca1f31 Merge branch 'release/2.1' into release/2.2
\n\nCommit migrated from 8d5274d7f8
2018-11-06 09:47:51 -08:00
Nate McMaster 8d17a5b9f3 Merge source code from aspnet/Configuration into this repo
\n\nCommit migrated from 8a9b64a3e5
2018-11-05 17:19:10 -08:00
Nate McMaster ac89e3e9bf Merge branch 'release/2.1' into release/2.2
\n\nCommit migrated from d94eb17013
2018-11-05 16:20:37 -08:00
Nate McMaster 09e84b256c Reorganize source code in preparation to move into aspnet/Extensions
Prior to reorganization, this source code was found in https://github.com/aspnet/Configuration/tree/dotnet/extensions@ef29dc86b970893147fd2a27d527f5a907af9fdd
\n\nCommit migrated from a8900855a4
2018-11-05 16:15:42 -08:00
Nate McMaster 0757dd7b80 Merge branch 'release/2.2'
\n\nCommit migrated from 4435c3565d
2018-11-05 14:03:44 -08:00
Nate McMaster 923fa4d586 Merge branch 'release/2.1' into release/2.2
\n\nCommit migrated from f9712e2491
2018-11-05 13:21:52 -08:00
Nate McMaster 2fa46e6e89 Merge aspnet/FileSystem into this repo
\n\nCommit migrated from 47696ac4a9
2018-11-05 13:19:52 -08:00
Nate McMaster 360b19ca09 Merge branch 'release/2.2'
\n\nCommit migrated from 04bac2f79c
2018-11-05 13:12:14 -08:00
Nate McMaster 376a6c9953 Merge branch 'release/2.1' into release/2.2
\n\nCommit migrated from 2d15280464
2018-11-05 13:10:48 -08:00