How do I run C # in a Node.js server application?

I have a node.js app and a C # algorithm. The algorithm produces 15 numbers, which represent the symbols on a digital slot machine. The node server sends and receives data from Firebase, and the digital slot machine does the same in a single table.

My question is, how can I get the node server to start or receive information from the C # algorithm? Everything else is written in Javascript. Should I rewrite the algorithm in JS for integration? I tried using a node module called edge.js but every time I tried to start my server there were compilation errors.

Any help is greatly appreciated.

+3


source to share


1 answer


I have an idea for your problem. U can write a C # console app and then call it from nodejs. U can see this url Run the exe file using node.js . after doing c # job all data to database, you can look at this table read from it via nodejs.



EDIT: Your solution is a web service. U can look at wcf rest.so every request calls C # code from http protocol. Then you can get the required data from the web service.

+4


source







All Articles