-
Notifications
You must be signed in to change notification settings - Fork 10.5k
JSObjectReference #25028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
JSObjectReference #25028
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
498d0d3
Started on new wasm JS interop call
MackinnonBuck a64dd0c
Properly handling null values for JSON arguments.
MackinnonBuck 7322737
Started JSObjectReference integration.
MackinnonBuck bdbed20
M.JSInterop.ts support for creating JSObjectReferences.
MackinnonBuck e675c7c
JSObjectReference invocation and disposal
MackinnonBuck 20b6bee
Fixed DotNetObjectReference serialization issue.
MackinnonBuck 8a03973
Fix for Blazor Server + E2E tests.
MackinnonBuck 4a33d69
Update Boot.WebAssembly.ts
MackinnonBuck 6110604
Support for passing JSObjectReference as parameter to interop call
MackinnonBuck ae724bc
Added JSInProcessObjectReference for sync interop.
MackinnonBuck 5ade312
Now using direct call to DotNet.jsCallDispatcher.disposeJSObjectRefer…
MackinnonBuck 595f39a
Some minor refactoring.
MackinnonBuck 8f7ef06
Merge branch 'release/5.0' of https://github.com/dotnet/aspnetcore in…
MackinnonBuck d2dff79
Added documentation + fixed JSInterop tests.
MackinnonBuck 505e659
Update JSObjectReferenceJsonConverter.cs
MackinnonBuck b8da35b
Added unit tests.
MackinnonBuck c112881
Added DotNet.createJSObjectReference/disposeJSObjectReference
MackinnonBuck 1231a11
CR feedback
MackinnonBuck 2d04f98
Removed JSCallResultTypeHelper.
MackinnonBuck b7dba9b
CR feedback
MackinnonBuck abdeb0d
Merge branch 'release/5.0' of https://github.com/dotnet/aspnetcore in…
MackinnonBuck 8246f55
Partially-complete support for "import" with JSObjectReference. (#25198)
SteveSandersonMS 2f6dad8
CR feedback
MackinnonBuck 025ea22
Fixed a bug
MackinnonBuck f185d50
Update InteropTest.cs
MackinnonBuck 97e0774
Update JSObjectReferenceJsonConverter
MackinnonBuck 4e8a570
ES6 module support + tests
MackinnonBuck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // Copyright (c) .NET Foundation. All rights reserved. | ||
| // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
|
||
| using System.Runtime.InteropServices; | ||
| using Microsoft.JSInterop; | ||
|
|
||
| namespace WebAssembly.JSInterop | ||
| { | ||
| [StructLayout(LayoutKind.Explicit, Pack = 4)] | ||
| internal struct JSCallInfo | ||
| { | ||
| [FieldOffset(0)] | ||
| public string FunctionIdentifier; | ||
|
|
||
| [FieldOffset(4)] | ||
| public JSCallResultType ResultType; | ||
|
|
||
| [FieldOffset(8)] | ||
| public string MarshalledCallArgsJson; | ||
|
|
||
| [FieldOffset(12)] | ||
| public long MarshalledCallAsyncHandle; | ||
|
|
||
| [FieldOffset(20)] | ||
| public long TargetInstanceId; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.