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

Add .Net Standard support

Open Astn opened this issue 7 years ago • 4 comments

This is for issue #89

Todo

Feel free to provide a pull request into this branch for any of the below.

  • [x] Create AustinHarris.JsonRpc.Standard - Targets .Net Standard 2.0
  • [x] Create TestServer_Console.Core - Targets .Net Core 2.0
  • [x] Decouple main library from Json.Net and allow serialization to be injected.
  • [ ] Provide examples of getting setup with Json.net
  • [ ] Provide examples of getting setup with some alternative (Suggestions?)
  • [ ] Figure out the Nuget situation
  • [ ] Determine if we can target a lower version of .Net Standard or if it isn't worth the effort

Astn avatar Jan 06 '18 06:01 Astn

great work 👍

bonesoul avatar Jan 06 '18 13:01 bonesoul

Initial tests on my Ubuntu 17 workstation are looking promising.

  • E5-1650 v4 @ 3.60GHz
  • 64 GB Mem

During this run cpu topped out at ~ 50% cpu utilization. So there should still be some improvements that can be done.

Starting benchmark
processed 50 rpc in 2ms for 25000 rpc/sec
processed 100 rpc in 0ms for ∞ rpc/sec
processed 300 rpc in 0ms for ∞ rpc/sec
processed 1200 rpc in 4ms for 300000 rpc/sec
processed 6000 rpc in 28ms for 214285.714285714 rpc/sec
processed 36000 rpc in 162ms for 222222.222222222 rpc/sec
processed 252000 rpc in 798ms for 315789.473684211 rpc/sec
processed 2016000 rpc in 4912ms for 410423.45276873 rpc/sec
Finished benchmark...
Hit Enter to run benchmark
'c' to start reading console input
'q' to quit

Astn avatar Jan 23 '18 18:01 Astn

Any progress or time frame on this issue?

I'm building a .Net Core app (/service) and need to support clean JSON RPC (no headers), and would like to use a library and not roll my own.

haakoo avatar May 02 '19 09:05 haakoo

Any progress or time frame on this issue?

I'm building a .Net Core app (/service) and need to support clean JSON RPC (no headers), and would like to use a library and not roll my own.

Nothing recently. I could use a little help reviewing the code, and feedback on if it's ready a beta release.

Astn avatar May 03 '19 17:05 Astn