Calling Node.JS from C # .Net

Is it possible to call Node.js Methods / Modules on a C # ASP.Net server? I found the Edge.JS library, but as I understand it, it allows you to call C # code on Node.JS. I need a direct inverse solution.

+5
source share
2 answers

Microsoft.AspNetCore.NodeServices

  • This provides a quick and reliable way for .NET code to run JavaScript on the server inside Node.js. You can use this to use arbitrary functions from NPM packages at run time in your ASP.NET Core application.

  • Most application developers do not have to use this directly, but you can do it if you want to implement your own functionality, which includes calling Node.js code from .NET at runtime.

Source: https://github.com/aspnet/JavaScriptServices

+3
source

just release the http method in your node application using "express" and call it with "RestSharp" / "HttpClient"

0
source

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


All Articles