Commit Graph

126 Commits

Author SHA1 Message Date
Javier Calvarro Nelson 6069a89758 Add InvokeAsync with cancellation token overload to IJSRuntime (dotnet/extensions#1915)
Adds the InvokeAsync with cancellation token overload to IJSRuntime\n\nCommit migrated from 55f0b77464
2019-07-02 19:21:16 +02:00
Javier Calvarro Nelson 5e4f1f5fb2 Adds an opt-in default timeout for async JS calls (dotnet/extensions#1880)
* Adds the ability to configure a default timeout for JavaScript interop calls.
* Adds the ability to pass in a cancellation token to InvokeAsync that will be used instead of the default timeout.
  * A default cancellation token can be passed to signal no cancellation, but it is not recommended in remote interop scenarios.\n\nCommit migrated from e04faac7e4
2019-07-02 13:24:29 +02:00
Javier Calvarro Nelson 244ed54764 Allow sanitization of dotnet interop exceptions (dotnet/extensions#1879)
Adds the ability to sanitize exceptions during JS to .NET interop calls by overriding OnDotNetInvocationException method and returning an object to be returned to JavaScript that describes the exception.\n\nCommit migrated from d7eab7c083
2019-07-02 12:40:50 +02:00
Brennan b39ec06467 Update corefx dependencies (dotnet/extensions#1898)
\n\nCommit migrated from b398a5db3d
2019-06-27 10:21:07 -07:00
Nate McMaster 2a890a978f Set ReferenceAssemblyAttribute in reference assemblies (dotnet/extensions#1845)
\n\nCommit migrated from 9107db4823
2019-06-14 12:13:49 -07:00
Pranav K 867453a06d Resolve the JSInterop call if deserialization fails (dotnet/extensions#1802)
* Resolve the JSInterop call if deserialization fails

\n\nCommit migrated from 26cf0c9f4e
2019-06-13 21:54:05 -07:00
Nate McMaster 2dd8eb61ba Disable transitive project references in test projects (dotnet/extensions#1834)
\n\nCommit migrated from e7d5bea3bb
2019-06-13 16:27:19 -07:00
Nate McMaster 5868b65934 Use even more Arcade and other csproj cleanups (dotnet/extensions#1833)
* Use Arcade's convention for setting IsPackable (must be explicitly set)
* Use Arcade conventions for using DebugType and eng/Versions.props
* Remove dead code
* Update restore feeds in daily builds.md
* Disable UsingToolNetFrameworkReferenceAssemblies in analyzer tests
* Remove usage of TestGroupName (an obsolete KoreBuild setting)
* Use IVT as a .csproj attribute

\n\nCommit migrated from f12d709976
2019-06-12 22:39:41 -07:00
dotnet-maestro[bot] e31f189c71 [master] Update dependencies from dotnet/core-setup (dotnet/extensions#1803)
* Update dependencies from https://github.com/dotnet/core-setup build 20190605.02

- Microsoft.NETCore.App - 3.0.0-preview7-27805-02
- NETStandard.Library.Ref - 2.1.0-preview7-27805-02

Dependency coherency updates

- Microsoft.Win32.Registry - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.ComponentModel.Annotations - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Data.SqlClient - 4.7.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Diagnostics.DiagnosticSource - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Diagnostics.EventLog - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.IO.Pipelines - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Reflection.Metadata - 1.7.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Runtime.CompilerServices.Unsafe - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Security.Cryptography.Cng - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Security.Cryptography.Xml - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.ServiceProcess.ServiceController - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Text.Encodings.Web - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- System.Text.Json - 4.6.0-preview7.19305.9 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.Platforms - 3.0.0-preview7.19305.9 (parent: Microsoft.NETCore.App)

* Update dependencies from https://github.com/dotnet/core-setup build 20190523.07

- Microsoft.NETCore.App - 3.0.0-preview6-27723-07
- NETStandard.Library.Ref - 2.1.0-preview6-27723-07

Dependency coherency updates

- Microsoft.Win32.Registry - 4.6.0-preview6.19273.4 (parent: Microsoft.NETCore.App)
- System.ComponentModel.Annotations - 4.6.0-preview6.19273.4 (parent: Microsoft.NETCore.App)
- System.Data.SqlClient - 4.7.0-preview6.19273.4 (parent: Microsoft.NETCore.App)
- System.Diagnostics.DiagnosticSource - 4.6.0-preview6.19273.4 (parent: Microsoft.NETCore.App)
- System.Diagnostics.EventLog - 4.6.0-preview6.19273.4 (parent: Microsoft.NETCore.App)
- System.IO.Pipelines - 4.6.0-preview6.19273.4 (parent: Microsoft.NETCore.App)
- System.Reflection.Metadata - 1.7.0-preview6.19273.4 (parent: Microsoft.NETCore.App)
- System.Runtime.CompilerServices.Unsafe - 4.6.0-preview6.19273.4 (parent: Microsoft.NETCore.App)
- System.Security.Cryptography.Cng - 4.6.0-preview6.19273.4 (parent: Microsoft.NETCore.App)
- System.Security.Cryptography.Xml - 4.6.0-preview6.19273.4 (parent: Microsoft.NETCore.App)
- System.ServiceProcess.ServiceController - 4.6.0-preview6.19273.4 (parent: Microsoft.NETCore.App)
- System.Text.Encodings.Web - 4.6.0-preview6.19273.4 (parent: Microsoft.NETCore.App)
- System.Text.Json - 4.6.0-preview6.19273.4 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.Platforms - 3.0.0-preview6.19273.4 (parent: Microsoft.NETCore.App)

* Update dependencies from https://github.com/dotnet/core-setup build 20190606.03

- Microsoft.NETCore.App - 3.0.0-preview7-27806-03
- NETStandard.Library.Ref - 2.1.0-preview7-27806-03

Dependency coherency updates

- Microsoft.Win32.Registry - 4.6.0-preview7.19306.6 (parent: Microsoft.NETCore.App)
- System.ComponentModel.Annotations - 4.6.0-preview7.19306.6 (parent: Microsoft.NETCore.App)
- System.Data.SqlClient - 4.7.0-preview7.19306.6 (parent: Microsoft.NETCore.App)
- System.Diagnostics.DiagnosticSource - 4.6.0-preview7.19306.6 (parent: Microsoft.NETCore.App)
- System.Diagnostics.EventLog - 4.6.0-preview7.19306.6 (parent: Microsoft.NETCore.App)
- System.IO.Pipelines - 4.6.0-preview7.19306.6 (parent: Microsoft.NETCore.App)
- System.Reflection.Metadata - 1.7.0-preview7.19306.6 (parent: Microsoft.NETCore.App)
- System.Runtime.CompilerServices.Unsafe - 4.6.0-preview7.19306.6 (parent: Microsoft.NETCore.App)
- System.Security.Cryptography.Cng - 4.6.0-preview7.19306.6 (parent: Microsoft.NETCore.App)
- System.Security.Cryptography.Xml - 4.6.0-preview7.19306.6 (parent: Microsoft.NETCore.App)
- System.ServiceProcess.ServiceController - 4.6.0-preview7.19306.6 (parent: Microsoft.NETCore.App)
- System.Text.Encodings.Web - 4.6.0-preview7.19306.6 (parent: Microsoft.NETCore.App)
- System.Text.Json - 4.6.0-preview7.19306.6 (parent: Microsoft.NETCore.App)
- Microsoft.NETCore.Platforms - 3.0.0-preview7.19306.6 (parent: Microsoft.NETCore.App)

* namespace
\n\nCommit migrated from 537f0c2db7
2019-06-07 19:08:51 +00:00
Justin Kotalik 3875b0f292 Add retries to HttpClientSlim on macOS. (dotnet/extensions#1807)
\n\nCommit migrated from d4d110a838
2019-06-07 11:32:18 -07:00
Yves Marx f402cc566a ActivatorUtilities.CreateInstance: allocation optimization
\n\nCommit migrated from 689a832ced
2019-06-05 08:19:46 +02:00
John Luo 73e95c56c1 Allow flaky attribute on class and assembly (dotnet/extensions#1742)
* Allow flaky attribute on class and assembly\n\nCommit migrated from 23ba460e27
2019-05-29 16:22:17 -07:00
Pranav K 78daf0166c Use System.Text.Json in Microsoft.JSInterop (dotnet/extensions#1704)
* Use System.Text.Json in Microsoft.JSInterop
\n\nCommit migrated from f6c9258abe
2019-05-29 09:47:26 -07:00
Nate McMaster 8b068f2320 Build and publish NPM packages in CI (dotnet/extensions#1748)
\n\nCommit migrated from 92b2c76bc8
2019-05-28 18:07:58 -07:00
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