Using edge.js it is possible for the C # .Net module to call part of the node.js process, i.e. Did you call back?

You can see the interaction model for moving from Node.js -> C #, here .

What I want to know is, can C # code make a method call on the Node.js part of a C # process before returning?

Imagine if you got a call, for example

var webApi = edge.func('/MyDotNetApi.csx'); webApi(function (error, result) { log.('api started'); }); 

where it returns MyDotNetApi.csx, but leaves the socket listener thread to execute HTTP requests. Now, if the part of the Node.js process contains (ever-changing) information that the .Net code must have access to include in its HTTP responses, can it somehow request Node.js from it?

+4
source share
1 answer

Calling Node.js from C # with Edge.js is also documented .

+2
source

Source: https://habr.com/ru/post/1502703/


All Articles