You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I decided to do this since it would facilitate writing a C# HTTP handler while degating calls to JS Fetch.
One of the main benefits of using this library is the ability to hold references to JS objects in C#, for example:
// We're still in C#
var element = JSRuntime.GetGlobalValue("document").Call("getElementById", "some-element-id");
var element2 = JSRuntime.GetGlobalValue("document").Call("getElementById", "some-other-element-id");
element2.Call("appendChild", element2);
There's also some cool stuff in this library like:
Support for callbacks
Support for awaiting JS promises from inside Csharp (!!!)
Avoiding garbage collection (and segfaults )for long-lived callbacks.
Two-way garbage collection synchronization.
Support for sharing memory across C# and JS.
That said, I've moved to a different project at TransformsAI and haven't had time to continue working on this stack. Hopefully this comment helps :)
No description provided.
The text was updated successfully, but these errors were encountered: