-
Notifications
You must be signed in to change notification settings - Fork 641
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
About the lifecycle of dll in edge #680
Comments
I am looking at using Edge and wanted to see what kind of defects it has. I noticed your question, but it looks like you are expecting a bunch of async function to behave as if they were sync. What if you await for your init to complete? |
THX for your reply. I was a fresher when I ask this question, and I use edge in a wrong way. I write a dll with C#, and I need to use in my electron program, so at last I use 'electron-edge-js'. In my program, I need to init something like the ca cert and the environment, finally, I write two dlls, electron-edge-js call the first dll, and the first dll call the second to do the init function. |
Is there any other way of doing this without using intermediate dll? |
Hello, I am a newer of edge-js, I create a C# dll project, source code as bellow:
And I got the dll file, put it in my node project, then create an api.js like this:
Finally, I create an index.js like this:
I try to run
node index.js
, and I got output in the console like this:But, my expect output is this:
I suspect this is related to the life cycle of the dll, because I load the dll three times in node. So, how can I load once, and use the three methods in the dll?
Thx for any replies!
The text was updated successfully, but these errors were encountered: