JSON Rpc libraries for use with .NET [closed]

丶灬走出姿态 提交于 2019-12-13 19:04:46

问题


I am looking into JSON RPC libraries for .net that are free to use in commercial applications. Up until now i just seem to have found JROCK.

  1. What other libraries, architecture have i got similar to JRock for .NET 2.0

  2. What is the difference between a [WebMethod] in asmx web-service returning a instance of a class and a JSON Rpc method as in the JRock website page. Do i have any usability benefits, performance benefits or any benefits of using one over the other


回答1:


JSON-RPC.NET http://jsonrpc2.codeplex.com/ is under a BSD license so you can use it in your commercial application. It has a ASP.net handler, but ASP.NET is not required. I have examples that run the server from a console application. It can work with sockets or pipes, or any transport you would like to plug into it. So you are not forced to use HTTP, but its there if you want to.

You should find that json rpc is more compact then asmx. It should reduce bandwidth, and could perform better for you, but you would want to test that.

I'm a contributer on the project, and would be interested to know if it meets your needs.



来源:https://stackoverflow.com/questions/9291423/json-rpc-libraries-for-use-with-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!