Description
Sandwych.JsonRpc is a JSON-RPC protocol client for .NET.
Sandwych.JsonRpc alternatives and similar packages
Based on the "HTTP" category.
Alternatively, view Sandwych.JsonRpc alternatives based on common mentions on social networks and blogs.
-
Refit
The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface. -
Flurl.Http
Fluent URL builder and testable HTTP client for .NET -
WebApiClient
An open source project based on the HttpClient. You only need to define the c# interface and modify the related features to invoke the client library of the remote http interface asynchronously. -
FastEndpoints
A light-weight REST API development framework for ASP.Net 6 and newer. [Moved to: https://github.com/FastEndpoints/Library] -
RestEase
Easy-to-use typesafe REST API client library for .NET Standard 1.1 and .NET Framework 4.5 and higher, which is simple and customisable. Inspired by Refit -
Simple.OData.Client
Multiplatform OData client library -
FluentUriBuilder
A safer and more readable way to build URI's in .NET -
RestLess
The automatic type-safe-reflectionless REST API client library for .Net Standard -
Apizr
Refit based web api client management, but resilient (retry, connectivity, cache, auth, log, priority, etc...) -
Cashew
A simple and elegant yet powerful HTTP client cache for .NET -
Lib.Net.Http.WebPush
Lib.Net.Http.WebPush is a library which provides a Web Push Protocol based client for Push Service. -
HttpClientGoodies
Useful utilities for the .NET HttpClient. -
Lib.Net.Http.EncryptedContentEncoding
Lib.Net.Http.EncryptedContentEncoding is a library which adds Encrypted Content-Encoding (aes128gcm) support to HttpClient
Static code analysis for 29 languages.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Sandwych.JsonRpc or a related project?
README
Sandwych.JsonRpc: A JSON-RPC Client For .NET
Sandwych.JsonRpc is a JSON-RPC protocol client for .NET.
WARNING: This library should be considered PRE-BETA software - the API can and will change frequently, do not use it for production.
Getting Started
Prerequisites
- Visual Studio 2017: This project is written in C# 7.0 using Microsoft Visual Studio 2017 Community Edition.
Supported Platform
- .NET Framework 4.5+
- .NET Standard 1.3+ (including .NET Core, Xamarin and others)
Installation
Sandwych.JsonRpc can be installed from NuGet
or type following commands in the NuGet Console:
PM> Install-Package Sandwych.JsonRpc
Demo & Usage:
Step 1: Define your JSON-RPC interface:
[JsonRpcService("/projects/jayrock/demo.ashx")]
public interface ITestJsonRpcService
{
[JsonRpcMethod("echo")]
Task<string> EchoAsync(string text);
[JsonRpcMethod("total")]
Task<int> TotalAsync(IEnumerable<int> values);
}
Step 2: Call your JSON-RPC using a dynamic proxy approach:
var settings = new Settings(); //Use default settings
var client = new HttpClient { BaseAddress = new Uri("http://www.raboof.com") };
var service = RpcProxyFactory.CreateProxyInstance<ITestJsonRpcService>(client, settings); //Create a dynamic proxy for the interface ITestJsonRpcService
var echoResult = await service.EchoAsync("hello");
Console.WriteLine(echoResult); //Should print "hello"
And done!
License
Author: Wei Li
This software is licensed in 3-clause BSD License.
Copyright (C) 2017-TODAY BinaryStars Technologies Yunnan LLC.
*Note that all licence references and agreements mentioned in the Sandwych.JsonRpc README section above
are relevant to that project's source code only.