microsoft / microsoft/node-api-dotnet

Provide a way to eagerly marshal (snapshot) all properties to js object.

Open
#399 3 comments 0 reactions 1 assignee View on GitHub

@jasongin is already working on this.

Since Jan 17, 2025.

marshalling
Dominant language
C#
Stars
783
Forks
80
PR merge metrics
No merged PRs in 30d

Description

When a function returns a class object, it can't be serialized to json and send it across RPC, because all of properties are dynamically loaded. Is there any way to marshal it to a completely JS object? Because compiling into a module doesn't work well.

It will be nice if can provide a snapshot helper to take the snapshot of a reference and let it pass with rpc.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.