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.
<PackageVersion Include="RPC.NET.Client" Version="6.0.0-preview2" />
                    
Directory.Packages.props
<PackageReference Include="RPC.NET.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#addin nuget:?package=RPC.NET.Client&version=6.0.0-preview2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=RPC.NET.Client&version=6.0.0-preview2&prerelease
                    
Install as a Cake Tool

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 310 2/13/2022 6.0.0-preview2 is deprecated because it is no longer maintained.
6.0.0-preview1 265 1/30/2022 6.0.0-preview1 is deprecated because it is no longer maintained.
5.0.2 538 12/22/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 381 12/18/2021 5.0.1 is deprecated because it is no longer maintained.
5.0.0 344 12/12/2021 5.0.0 is deprecated because it is no longer maintained.
5.0.0-preview3 278 12/4/2021 5.0.0-preview3 is deprecated because it is no longer maintained.
5.0.0-preview2 312 10/29/2021 5.0.0-preview2 is deprecated because it is no longer maintained.
5.0.0-preview1 307 10/29/2021 5.0.0-preview1 is deprecated because it is no longer maintained.
4.0.1 464 7/2/2021 4.0.1 is deprecated because it is no longer maintained.
4.0.0 432 7/1/2021 4.0.0 is deprecated because it is no longer maintained.
3.0.4 463 6/29/2021 3.0.4 is deprecated because it is no longer maintained.
3.0.3 442 5/25/2021 3.0.3 is deprecated because it is no longer maintained.
3.0.2 465 4/8/2021 3.0.2 is deprecated because it is no longer maintained.
3.0.1 473 4/2/2021 3.0.1 is deprecated because it is no longer maintained.
3.0.0 499 3/20/2021 3.0.0 is deprecated because it is no longer maintained.
3.0.0-preview3 335 3/9/2021 3.0.0-preview3 is deprecated because it is no longer maintained.
3.0.0-preview2 339 3/8/2021 3.0.0-preview2 is deprecated because it is no longer maintained.
3.0.0-preview1 339 2/22/2021 3.0.0-preview1 is deprecated because it is no longer maintained.
2.2.0 535 10/16/2020 2.2.0 is deprecated because it is no longer maintained.
2.1.1 532 10/12/2020 2.1.1 is deprecated because it is no longer maintained.
2.1.0 548 9/25/2020 2.1.0 is deprecated because it is no longer maintained.
2.0.0 548 9/8/2020 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview4 399 8/25/2020 2.0.0-preview4 is deprecated because it is no longer maintained.
2.0.0-preview3 399 8/17/2020 2.0.0-preview3 is deprecated because it is no longer maintained.
2.0.0-preview2 407 8/8/2020 2.0.0-preview2 is deprecated because it is no longer maintained.
2.0.0-preview1 424 8/3/2020 2.0.0-preview1 is deprecated because it is no longer maintained.
1.0.0 596 7/19/2020 1.0.0 is deprecated because it is no longer maintained.
1.0.0-preview3 495 7/18/2020 1.0.0-preview3 is deprecated because it is no longer maintained.
1.0.0-preview2 429 7/14/2020 1.0.0-preview2 is deprecated because it is no longer maintained.
1.0.0-preview1 467 7/12/2020 1.0.0-preview1 is deprecated because it is no longer maintained.