microsoft / microsoft/node-api-dotnet
Provide a way to eagerly marshal (snapshot) all properties to js object.
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.