I've taken the code that's in NodejsEmbeddingTest.cs in the WorkerMessages and tried to get it to run in both a console and ASP.NET Core application, but it fails saying that a stream has been closed.
Specifically, it fails in RuntimeConfigureCallbackAdapter after the callback has been completed successfully and NodeEmbeddingStatus.OK is being returned. It just fails with no exception. Disabling Just my code revealed no other errors and nothing specifically crashed that I could find.
I do not have this issue when running the same exact code in the unit tests. Any ideas on what needs to be set up to enable this?