Add async/await support instead of IAsyncResult
DenisBalan opened this issue · 2 comments
DenisBalan commented
Currently self-hosted wiki documentation states that JsonRpcStateAsync should be used.
Which inherits from IAsyncResult, and other classes as well have old asynchronous model classes and properties (WaitHandle, AsyncState, IsCompleted etc).
This issue is to propose to migrate to newer model of async programming model.
Astn commented
Great catch @DenisBalan, the wiki is out dated.
Using one of the Process functions that returns a Task is the way to go!
JSON-RPC.NET/Json-Rpc/JsonRpcProcessor.cs
Line 30 in ee15bdb
Astn commented
I updated the example on https://github.com/Astn/JSON-RPC.NET/wiki/Getting-Started-(Console)
If there is another place, feel free to update it. The wiki is open.