RPC.NET.Client 6.0.0-preview2

This is a prerelease version of RPC.NET.Client.
dotnet add package RPC.NET.Client --version 6.0.0-preview2                
NuGet\Install-Package RPC.NET.Client -Version 6.0.0-preview2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RPC.NET.Client" Version="6.0.0-preview2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RPC.NET.Client --version 6.0.0-preview2                
#r "nuget: RPC.NET.Client, 6.0.0-preview2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RPC.NET.Client as a Cake Addin
#addin nuget:?package=RPC.NET.Client&version=6.0.0-preview2&prerelease

// Install RPC.NET.Client as a Cake Tool
#tool nuget:?package=RPC.NET.Client&version=6.0.0-preview2&prerelease                

RPC.NET Client

Strongly typed client to invoke RPC.NET servers

This documentation refers the version 6.X of the library

Name Package
RPC.NET.Interfaces Nuget (with prereleases)
RPC.NET.Client Nuget (with prereleases)

How it works

  1. The server exposes modules having well defined layout (service interface). These interfaces are placed in a separate project (for instance this) so the client app may grab it.
  2. The client generates a proxy against the module interface.
  3. When a proxy method is called, the underlying implementation invokes the backend in the way described here.

Client example

This example invokes the server used in tests.

using Solti.Utils.Rpc;
using Solti.Utils.Rpc.Server.Sample.Interfaces;
...
using RpcClientFactory factory = new("http://127.0.0.1:1986/api/");
ICalculator calculator = await factory.CreateClient<ICalculator>();
try
{
  int result = await calculator.AddAsync(1, 2);
}
catch(RpcException ex)
{
  // ex.InnerException will contain the original exception
}

Additional resources

API docs

Version history

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.0.0-preview2 204 2/13/2022
6.0.0-preview1 191 1/30/2022
5.0.2 429 12/22/2021
5.0.1 304 12/18/2021
5.0.0 269 12/12/2021
5.0.0-preview3 210 12/4/2021
5.0.0-preview2 236 10/29/2021
5.0.0-preview1 233 10/29/2021
4.0.1 385 7/2/2021
4.0.0 357 7/1/2021
3.0.4 385 6/29/2021
3.0.3 362 5/25/2021
3.0.2 382 4/8/2021
3.0.1 387 4/2/2021
3.0.0 415 3/20/2021
3.0.0-preview3 252 3/9/2021
3.0.0-preview2 255 3/8/2021
3.0.0-preview1 254 2/22/2021
2.2.0 443 10/16/2020
2.1.1 440 10/12/2020
2.1.0 456 9/25/2020
2.0.0 454 9/8/2020
2.0.0-preview4 314 8/25/2020
2.0.0-preview3 315 8/17/2020
2.0.0-preview2 323 8/8/2020
2.0.0-preview1 341 8/3/2020
1.0.0 504 7/19/2020
1.0.0-preview3 413 7/18/2020
1.0.0-preview2 341 7/14/2020
1.0.0-preview1 384 7/12/2020