Commit Graph

294 Commits

Author SHA1 Message Date
Pranav K ae498d10e9 Merge pull request dotnet/extensions#2196 from dotnet-maestro-bot/merge/release/3.0-to-master
[automated] Merge branch 'release/3.0' => 'master'\n\nCommit migrated from 969f9a17fc
2019-08-18 10:07:11 -07:00
Doug Bunting 38faa77e8e Merge branch 'master' into merge/release/3.0-to-master\n\nCommit migrated from b76c166267 2019-08-17 21:44:29 -07:00
Doug Bunting f2d6b04301 Merge branch 'release/3.0' => 'master' (dotnet/extensions#2192)
\n\nCommit migrated from 2dd5bf89b4
2019-08-16 19:03:25 -07:00
Doug Bunting bd300b5220 Rebuilt ref/ code for Microsoft.JSInterop
\n\nCommit migrated from b791bce755
2019-08-16 18:28:51 -07:00
James Newton-King 29e0146528 Update TypeNameHelper.cs (dotnet/extensions#2194)
\n\nCommit migrated from 204a4eef27
2019-08-17 13:06:53 +12:00
Doug Bunting 1bdf28d256 Merge branch 'master' into merge/release/3.0-to-master\n\nCommit migrated from 1f75fc566a 2019-08-16 16:44:12 -07:00
Pranav K d46d569b81 Simplify JSRuntime method signature (dotnet/extensions#2188)
\n\nCommit migrated from 9c392a92ef
2019-08-16 16:19:23 -07:00
Brennan 591d6c13ec Add support for netcoreapp5.0 to micro benchmarks (dotnet/extensions#2190)
\n\nCommit migrated from 72bcb43aee
2019-08-16 13:47:32 -07:00
Brennan f9a052ec67 Merge pull request dotnet/extensions#2185 from dotnet-maestro-bot/merge/release/3.0-to-master
[automated] Merge branch 'release/3.0' => 'master'\n\nCommit migrated from 65707ffbcc
2019-08-16 13:39:22 -07:00
Brennan Conroy dc5beb9621 Merge branch 'merge/release/3.0-to-master' of https://github.com/dotnet-maestro-bot/Common into merge/release/3.0-to-master
\n\nCommit migrated from 4357bfdf6c
2019-08-16 08:01:30 -07:00
Pranav K ef83e3359d Change JSInterop to avoid using async locals (dotnet/extensions#2163)
* Remove the use of async local JSRuntime

* Update DotNetDispatcher to accept a JSRuntime instance rather than use a ambient value.
* Modify DotNetObjectReference to start tracking it's value during serialization.
\n\nCommit migrated from ae9878bb99
2019-08-15 17:14:03 -07:00
Justin Kotalik c717230b13 Cleanup to skip/flaky attributes (dotnet/extensions#2186)
\n\nCommit migrated from cfef5e07fb
2019-08-15 09:12:53 -07:00
Pranav K 9372816b7c API Review: JSRuntime (dotnet/extensions#2166)
* API Review: JSRuntime

* Rename JSRuntimeBase -> JSRuntime
* Rename JSInProcessRuntimeBase -> JSInProcessRuntime
* Rename DotNetObjectRef -> DotNetObjectReference
* Update JSRuntime to return ValueTask
* Make InvokeAsync APIs that explicitly cancels and API that default cancels more crisp
* Introduce void invoking APIs
* Fixup method names on DotNetDispatcher

\n\nCommit migrated from 93d3ae4485
2019-08-14 12:24:35 -07:00
Pranav K edd5f54bc3 Special case Disposing DotNetObjectReferences (dotnet/extensions#2176)
* Special case Disposing DotNetObjectReferences

This removes a public JSInvokable method required for disposing DotNetObjectReferences


\n\nCommit migrated from d6bfc28e21
2019-08-14 09:44:33 -07:00
Pranav K 30f518e0c9 Merge branch 'master' into merge/release/3.0-to-master\n\nCommit migrated from ad8ba0cbe4 2019-08-14 08:23:10 -07:00
John Luo a980601d83 Merge pull request dotnet/extensions#2155 from dotnet-maestro-bot/merge/release/3.0-to-master
[automated] Merge branch 'release/3.0' => 'master'\n\nCommit migrated from 3f8ee552a0
2019-08-13 13:52:44 -07:00
Doug Bunting 60778e8dc7 Fix unintended breaking change
- blocking aspnet/AspNetCoredotnet/extensions#1293 dependency update PR
- commit 3ec8c35e450c lost `AssemblyName` substitution
  - tasks assembly in package incorrectly named ".Manifest.Task.dll"
\n\nCommit migrated from 77403f35be
2019-08-11 14:12:42 -07:00
John Luo 4e01ec6348 Update ref assemblies and missed updates
\n\nCommit migrated from 6fc17ec76f
2019-08-09 15:17:50 -07:00
John Luo 6c66664ae6 Update tfm in master to netcoreap5.0
\n\nCommit migrated from 3fa337f230
2019-08-09 15:05:55 -07:00
William Godbe fff0e0a324 Merge branch 'master' into merge/release/3.0-to-master\n\nCommit migrated from 97783282f9 2019-08-09 12:12:06 -07:00
Hisham Bin Ateya 7dfc2fe46b Fix GetResourcePrefix() that causes an issue with using Rootnamespace (dotnet/extensions#2081)
* Fix GetResourcePrefix() that causes an issue with using Rootnamespace

Update GetResourcePrefix to use baseNamespace to calculate resource prefix rather than assembly name.

Addresses issues aspnet/AspNetCoredotnet/extensions#10639\n\nCommit migrated from 2303aa23dd
2019-08-08 14:32:48 -07:00
John Luo 42eec2cbfa Fix build break by using API that's available across net472 and netcoreapp3.0 (dotnet/extensions#2157)
\n\nCommit migrated from 6e96af8eba
2019-08-07 15:44:03 -07:00
John Luo 95746c596e Multitarget extensions packages to remove dependencies for source build (dotnet/extensions#2090)
\n\nCommit migrated from 3ec8c35e45
2019-08-07 13:26:14 -07:00
Pranav K 557bd8e011 Use Utf8JsonReader in DotNetDispatcher (dotnet/extensions#2061)
* Use Utf8JsonReader in DotNetDispatcher

Fixes https://github.com/aspnet/AspNetCore/issues/10988
\n\nCommit migrated from c24711c84d
2019-08-07 09:44:42 -07:00
Pranav K 36af8e24d8 Use JsonConverter for DotNetObjectRef (dotnet/extensions#2049)
* Use JsonConverter for DotNetObjectRef
\n\nCommit migrated from 3485941347
2019-07-24 12:49:48 -07:00
Pranav K 39c052b8bc More
\n\nCommit migrated from 0cf3c01afc
2019-07-23 19:36:16 -07:00
Pranav K 950b3873b1 PR comments
\n\nCommit migrated from 791c96b143
2019-07-23 18:39:17 -07:00
Pranav K 2d2400e7fa Use JsonConverter for DotNetObjectRef
\n\nCommit migrated from 0389bf44d4
2019-07-23 18:39:17 -07:00
Javier Calvarro Nelson b4bcb1fd15 [JSInterop] Updates the JSInterop abstractions to better support logging and diagnostics. (dotnet/extensions#2043)
* Add an overload to handle .NET completion calls without going through JS interop.
* Add endInvokeHook on the client-side.
* Replace OnDotNetInvocationException with EndInvokeDotNet.\n\nCommit migrated from 4312b9a050
2019-07-17 17:12:37 +02:00
Andrew Stanton-Nurse 4c0a9d9a6b update version of SqlClient used by sql cache (dotnet/extensions#2006)
\n\nCommit migrated from b1ff0d9dc8
2019-07-16 14:42:37 -07:00
Doug Bunting d4ba273825 Merge branch 'release/3.0-preview7' => 'master' (dotnet/extensions#2032)
\n\nCommit migrated from 07e0a76d50
2019-07-14 12:26:41 -07:00
Doug Bunting ddf3cb66f1 Merge branch 'master' into merge/release/3.0-preview7-to-master\n\nCommit migrated from 576150b007 2019-07-14 11:42:06 -07:00
Andrew Stanton-Nurse 4c1dde914f Use TimeSpan value for reload interval (dotnet/extensions#2000)
Use TimeSpan value for reload interval\n\nCommit migrated from f5022994e9
2019-07-10 09:05:22 -07:00
Pranav K d0a69f9860 Json Options (dotnet/extensions#1993)
\n\nCommit migrated from 912ab18694
2019-07-10 07:54:15 -07:00
Steve Sanderson 3c42f4436f Bring back required export jsCallDispatcher.findJSFunction (dotnet/extensions#2002)
\n\nCommit migrated from 5350efd2f4
2019-07-10 12:12:11 +01:00
Steve Sanderson 86b55046c9 In JSInterop calls, use expected value for 'this'. Fixes dotnet/extensions#1477 (dotnet/extensions#1990)
\n\nCommit migrated from a664ecb5b3
2019-07-09 12:40:20 +01:00
Ryan Brandenburg 97a039f154 PR feedback
\n\nCommit migrated from d656c4f7e2
2019-07-08 14:37:20 -07:00
Ryan Brandenburg f8b525f02d PR feedback
\n\nCommit migrated from 2e1cfcd1f9
2019-07-08 14:37:20 -07:00
Ryan Brandenburg 25cad453f4 More doc comment additions
\n\nCommit migrated from 551e7c269a
2019-07-08 14:37:20 -07:00
Ryan Brandenburg 109d388e5e More doc comments
\n\nCommit migrated from d3cad4c787
2019-07-08 14:37:20 -07:00
Ryan Brandenburg bd0623bf72 Fix generic <see references
\n\nCommit migrated from 72d4e3ad79
2019-07-08 14:37:20 -07:00
Ryan Brandenburg a61d9b6921 Add some missing doc comments
\n\nCommit migrated from 238b272238
2019-07-08 14:37:20 -07:00
Javier Calvarro Nelson 919734cbb2 Invoking a method with an invalid dotnetobjectref bubbles up through the wrong path (dotnet/extensions#1940)
* Handle non existing dotnet object references and returns the error through JSInterop instead of bubbling it up to the caller.
* Every other error in JSInterop is returned that way.
* It makes sure that the error gets to the client and is sanitized appropriately if necessary.\n\nCommit migrated from a30f2cbb27
2019-07-05 10:16:39 +02:00
Doug Bunting 9b3261722c Merge branch 'release/3.0-preview7' => 'master' (dotnet/extensions#1910)
\n\nCommit migrated from ced5f28d8e
2019-07-03 07:19:30 -07:00
Doug Bunting 8402271cf3 Merge branch 'master' into merge/release/3.0-preview7-to-master\n\nCommit migrated from 609186745f 2019-07-02 21:53:59 -07:00
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