Ejemplo n.º 1
0
 public RpcClient(Uri baseUrl, AuthenticationHeaderValue authHeaderValue = null,
                  JsonSerializerSettings jsonSerializerSettings          = null)
 {
     if (jsonSerializerSettings == null)
     {
         jsonSerializerSettings = DefaultJsonSerializerSettingsFactory.BuildDefaultJsonSerializerSettings();
     }
     _innerRpcClient = new EdjCase.JsonRpc.Client.RpcClient(baseUrl,
                                                            authHeaderValue, jsonSerializerSettings);
 }
Ejemplo n.º 2
0
 public RpcClient(Uri baseUrl, AuthenticationHeaderValue authHeaderValue = null,
                  JsonSerializerSettings jsonSerializerSettings          = null, HttpClientHandler httpClientHandler = null)
 {
     _baseUrl         = baseUrl;
     _authHeaderValue = authHeaderValue;
     if (jsonSerializerSettings == null)
     {
         jsonSerializerSettings = DefaultJsonSerializerSettingsFactory.BuildDefaultJsonSerializerSettings();
     }
     _jsonSerializerSettings = jsonSerializerSettings;
     _httpClientHandler      = httpClientHandler;
     CreateNewHttpClient();
 }