From 22dafe9bf343dfa751c1b17201aafd25f12b9b64 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Wed, 31 Dec 2014 18:25:54 +0100 Subject: [PATCH] Update jsonrpc4net --- jsonrpc4net/jsonrpc4net/ExceptionResolver.cs | 3 ++ jsonrpc4net/jsonrpc4net/JsonRpcClientException.cs | 5 ++- jsonrpc4net/jsonrpc4net/JsonRpcHttpAsyncClient.cs | 16 +++++--- .../jsonrpc4net/jsonrpc4net.MonoDevelop.csproj | 44 +++++++++++----------- jsonrpc4net/jsonrpc4net/packages.config | 10 ++--- 5 files changed, 45 insertions(+), 33 deletions(-) diff --git a/jsonrpc4net/jsonrpc4net/ExceptionResolver.cs b/jsonrpc4net/jsonrpc4net/ExceptionResolver.cs index c00e6cd..b056295 100644 --- a/jsonrpc4net/jsonrpc4net/ExceptionResolver.cs +++ b/jsonrpc4net/jsonrpc4net/ExceptionResolver.cs @@ -4,6 +4,9 @@ using System.Collections.Generic; namespace GumartinM.JsonRPC4NET { + /// + /// Exception resolver. + /// public class ExceptionResolver { /// diff --git a/jsonrpc4net/jsonrpc4net/JsonRpcClientException.cs b/jsonrpc4net/jsonrpc4net/JsonRpcClientException.cs index 4adc5c1..ace73fb 100644 --- a/jsonrpc4net/jsonrpc4net/JsonRpcClientException.cs +++ b/jsonrpc4net/jsonrpc4net/JsonRpcClientException.cs @@ -3,6 +3,9 @@ using System; namespace GumartinM.JsonRPC4NET { + /// + /// Json rpc client exception. + /// public class JsonRpcClientException : System.Exception { /// @@ -16,7 +19,7 @@ namespace GumartinM.JsonRPC4NET private readonly JToken _data; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Code. /// Message. diff --git a/jsonrpc4net/jsonrpc4net/JsonRpcHttpAsyncClient.cs b/jsonrpc4net/jsonrpc4net/JsonRpcHttpAsyncClient.cs index 201439f..56d78e7 100644 --- a/jsonrpc4net/jsonrpc4net/JsonRpcHttpAsyncClient.cs +++ b/jsonrpc4net/jsonrpc4net/JsonRpcHttpAsyncClient.cs @@ -1,10 +1,8 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; -using Newtonsoft.Json.Serialization; using NLog; using System; using System.Collections.Generic; -using System.Net; using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -13,6 +11,9 @@ using System.Text; namespace GumartinM.JsonRPC4NET { + /// + /// Json rpc http async client. + /// public class JsonRpcHttpAsyncClient { /// @@ -103,6 +104,7 @@ namespace GumartinM.JsonRPC4NET /// The async. /// URI. /// Method. + /// JsonData. /// Cancellation. /// The 1st type parameter. async private Task> PostAsync(string uri, string method, string jsonData, CancellationToken cancellation) @@ -127,11 +129,15 @@ namespace GumartinM.JsonRPC4NET } } + /// + /// Reads the response async. + /// + /// The response async. + /// Content. + /// The 1st type parameter. async private Task> ReadResponseAsync(HttpContent content) { - /** - * Taken from HttpContent.cs ReadAsStringAsync() Mono implementation. - */ + // Taken from HttpContent.cs ReadAsStringAsync() Mono implementation. Encoding encoding; if (content.Headers != null && content.Headers.ContentType != null && content.Headers.ContentType.CharSet != null) { diff --git a/jsonrpc4net/jsonrpc4net/jsonrpc4net.MonoDevelop.csproj b/jsonrpc4net/jsonrpc4net/jsonrpc4net.MonoDevelop.csproj index 37f655b..9932c9b 100644 --- a/jsonrpc4net/jsonrpc4net/jsonrpc4net.MonoDevelop.csproj +++ b/jsonrpc4net/jsonrpc4net/jsonrpc4net.MonoDevelop.csproj @@ -3,44 +3,40 @@ Debug AnyCPU - 12.0.0 - 2.0 {0C624E8F-9C80-457F-A7D1-39FA29E23F79} Library GumartinM.JsonRPC4NET - jsonrpc4net - v4.5 Dirty implementation of JSON RPC. Just trying to learn how to use C#. - - - true - full - false - bin\Debug - DEBUG; - prompt - 4 - false + 1.0 + false + jsonrpc4net + v4.5 - full true bin\Release prompt 4 false + bin\Release\jsonrpc4net.xml + + + true + false + bin\Debug + DEBUG; + 4 + bin\Debug\jsonrpc4net.xml - - ..\..\..\..\..\..\..\usr\mymono\lib\mono\4.5\System.Net.Http.dll - - - monodevelop - - ..\..\ThirdParty\Libs\NLog\net45\NLog.dll + ..\packages\NLog.3.1.0.0\lib\net45\NLog.dll + + + + ..\packages\Newtonsoft.Json.6.0.7\lib\net45\Newtonsoft.Json.dll @@ -50,4 +46,8 @@ to use C#. + + + + \ No newline at end of file diff --git a/jsonrpc4net/jsonrpc4net/packages.config b/jsonrpc4net/jsonrpc4net/packages.config index e09220d..cec134d 100644 --- a/jsonrpc4net/jsonrpc4net/packages.config +++ b/jsonrpc4net/jsonrpc4net/packages.config @@ -1,8 +1,8 @@  - - - - - + + + + + \ No newline at end of file -- 2.1.4