JSON-RPC.NET icon indicating copy to clipboard operation
JSON-RPC.NET copied to clipboard

Question: RunSynchronously possible?

Open JOEHRHARDT opened this issue 6 years ago • 1 comments

Is it possible to carry out JsonRpcProcessor.Process in parent thread? Like with Task.RunSynchronously.

JOEHRHARDT avatar Nov 05 '18 16:11 JOEHRHARDT

Not without creating another variation of the Process function. https://github.com/Astn/JSON-RPC.NET/blob/master/Json-Rpc/JsonRpcProcessor.cs#L34

It may still need to run inside of a Task though.

Feel free to submit a pull request.

Astn avatar Nov 12 '18 00:11 Astn

Now possible https://github.com/Astn/JSON-RPC.NET/blob/82d23f1259be9e931cbe6dcff60df8330d49b471/Json-Rpc/JsonRpcProcessor.cs#L49

Astn avatar Mar 13 '24 00:03 Astn