2021-02-25 17:49:33 +08:00
2021-02-10 22:41:24 +08:00
2021-02-25 17:49:33 +08:00
2021-02-10 22:41:24 +08:00
2021-02-10 22:41:24 +08:00
2021-02-10 22:41:24 +08:00

Installation

npm install git+https://git.wm-app.xyz/dev/csharp-process.git

or

yarn add git+https://git.wm-app.xyz/dev/csharp-process.git

Usage

in C#

class Program : NodeProcess
{
    static void Main(string[] args)
    {
        NodeSharp.Start(new Program());
    }

    public override void OnAction(NodeParam param, RPCHandle rpc)
    {
        
        rpc.Send(" ==> test " + param.data);
    }
}

in node

import Porcess from 'csharp-process'

const service = new Process('./demo.exe',result => {
	console.log('result:',result)
},error => {
	console.log('error:',error)
});

try {
    const result = await service.send('hello csharp', 'test');
    console.log('process result:', result)
} catch (e) {
    console.log('process Error:', e)
}
Description
No description provided
Readme 29 KiB
Languages
JavaScript 100%