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 RPC.NET.Client as a Cake Addin
#tool nuget:?package=RPC.NET.Client&version=6.0.0-preview2&prerelease
                    
Install RPC.NET.Client 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. 
.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 277 2/13/2022 6.0.0-preview2 is deprecated because it is no longer maintained.
6.0.0-preview1 238 1/30/2022 6.0.0-preview1 is deprecated because it is no longer maintained.
5.0.2 506 12/22/2021 5.0.2 is deprecated because it is no longer maintained.
5.0.1 355 12/18/2021 5.0.1 is deprecated because it is no longer maintained.
5.0.0 318 12/12/2021 5.0.0 is deprecated because it is no longer maintained.
5.0.0-preview3 253 12/4/2021 5.0.0-preview3 is deprecated because it is no longer maintained.
5.0.0-preview2 282 10/29/2021 5.0.0-preview2 is deprecated because it is no longer maintained.
5.0.0-preview1 281 10/29/2021 5.0.0-preview1 is deprecated because it is no longer maintained.
4.0.1 441 7/2/2021 4.0.1 is deprecated because it is no longer maintained.
4.0.0 409 7/1/2021 4.0.0 is deprecated because it is no longer maintained.
3.0.4 441 6/29/2021 3.0.4 is deprecated because it is no longer maintained.
3.0.3 418 5/25/2021 3.0.3 is deprecated because it is no longer maintained.
3.0.2 438 4/8/2021 3.0.2 is deprecated because it is no longer maintained.
3.0.1 448 4/2/2021 3.0.1 is deprecated because it is no longer maintained.
3.0.0 474 3/20/2021 3.0.0 is deprecated because it is no longer maintained.
3.0.0-preview3 308 3/9/2021 3.0.0-preview3 is deprecated because it is no longer maintained.
3.0.0-preview2 311 3/8/2021 3.0.0-preview2 is deprecated because it is no longer maintained.
3.0.0-preview1 308 2/22/2021 3.0.0-preview1 is deprecated because it is no longer maintained.
2.2.0 503 10/16/2020 2.2.0 is deprecated because it is no longer maintained.
2.1.1 501 10/12/2020 2.1.1 is deprecated because it is no longer maintained.
2.1.0 519 9/25/2020 2.1.0 is deprecated because it is no longer maintained.
2.0.0 517 9/8/2020 2.0.0 is deprecated because it is no longer maintained.
2.0.0-preview4 370 8/25/2020 2.0.0-preview4 is deprecated because it is no longer maintained.
2.0.0-preview3 369 8/17/2020 2.0.0-preview3 is deprecated because it is no longer maintained.
2.0.0-preview2 378 8/8/2020 2.0.0-preview2 is deprecated because it is no longer maintained.
2.0.0-preview1 394 8/3/2020 2.0.0-preview1 is deprecated because it is no longer maintained.
1.0.0 567 7/19/2020 1.0.0 is deprecated because it is no longer maintained.
1.0.0-preview3 466 7/18/2020 1.0.0-preview3 is deprecated because it is no longer maintained.
1.0.0-preview2 394 7/14/2020 1.0.0-preview2 is deprecated because it is no longer maintained.
1.0.0-preview1 438 7/12/2020 1.0.0-preview1 is deprecated because it is no longer maintained.