Using a .NET DLL in Node.js / serverside javascript

后端 未结 8 1348
南旧
南旧 2020-12-02 07:27

I have a pet project that is an online game, the entire game engine is written in C# and I would like to know if there is anyway I can call the functions of this existing as

8条回答
  •  悲&欢浪女
    2020-12-02 08:08

    Check out the edge.js project I started (http://tjanczuk.github.com/edge). It provides a mechanism for running .NET and node.js code in-process. Edge.js allows you to call .NET code from node.js and node.js code from .NET. It marshals data between .NET and node.js as well as reconciles the threading models between multi-threaded CLR and single threaded V8.

    Using edge.js you can access islands of pre-existing .NET code from node.js, which seems to match your scenario.

提交回复
热议问题