问题
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.
What other libraries, architecture have i got similar to JRock for .NET 2.0
What is the difference between a
[WebMethod]
inasmx
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