VOOZH about

URL: https://www.nuget.org/packages/PipeMethodCalls/

⇱ NuGet Gallery | PipeMethodCalls 4.0.3




👁 Image
PipeMethodCalls 4.0.3

dotnet add package PipeMethodCalls --version 4.0.3
 
 
NuGet\Install-Package PipeMethodCalls -Version 4.0.3
 
 
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="PipeMethodCalls" Version="4.0.3" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PipeMethodCalls" Version="4.0.3" />
 
Directory.Packages.props
<PackageReference Include="PipeMethodCalls" />
 
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 PipeMethodCalls --version 4.0.3
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PipeMethodCalls, 4.0.3"
 
 
#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.
#:package PipeMethodCalls@4.0.3
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PipeMethodCalls&version=4.0.3
 
Install as a Cake Addin
#tool nuget:?package=PipeMethodCalls&version=4.0.3
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

PipeMethodCalls

Lightweight .NET Standard 2.0 library to use method calls over named and anonymous pipes for IPC. Supports two-way communication with callbacks.

Calls from client to server

var pipeServer = new PipeServer<IAdder>(
 new NetJsonPipeSerializer(),
 "mypipe",
 () => new Adder());
await pipeServer.WaitForConnectionAsync();
var pipeClient = new PipeClient<IAdder>(new NetJsonPipeSerializer(), "mypipe");
await pipeClient.ConnectAsync();
int result = await pipeClient.InvokeAsync(adder => adder.AddNumbers(1, 3));

Calls both way

var pipeServer = new PipeServerWithCallback<IConcatenator, IAdder>(
 new NetJsonPipeSerializer(),
 "mypipe",
 () => new Adder());
await pipeServer.WaitForConnectionAsync();
string concatResult = await pipeServer.InvokeAsync(c => c.Concatenate("a", "b"));
var pipeClient = new PipeClientWithCallback<IAdder, IConcatenator>(
 new NetJsonPipeSerializer(),
 "mypipe",
 () => new Concatenator());
await pipeClient.ConnectAsync();
int result = await pipeClient.InvokeAsync(a => a.AddNumbers(4, 7));

About the library

This library uses named pipes to invoke method calls on a remote endpoint. The method arguments are serialized to binary and sent over the pipe.

Serialization

PipeMethodCalls supports customizable serialization logic through IPipeSerializer. You've got two options:

  • Use a pre-built serializer
    • new NetJsonPipeSerializer() from the PipeMethodCalls.NetJson package. That uses the System.Text.Json serializer that's built into .NET.
    • new MessagePackPipeSerializer() from the PipeMethodCalls.MessagePack package. That uses the MessagePack-CSharp serializer, which has excellent performance.
  • Plug in your own implementation of IPipeSerializer. Refer to the NetJsonPipeSerializer code for an example of how to do this.

Open an issue or pull request if you'd like to see more built-in serializers.

Features

  • 100% asynchronous communication with .ConfigureAwait(false) to minimize context switches and reduce thread use
  • 45KB with no built-in dependencies
  • Invoking async methods
  • Passing and returning complex types with pluggable JSON or binary serialization
  • Interleaved or multiple simultaneous calls
  • Throwing exceptions
  • CancellationToken support
  • Works on Windows, Linux and MacOS

Not supported

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

    • No dependencies.

NuGet packages (10)

Showing the top 5 NuGet packages that depend on PipeMethodCalls:

Package Downloads
PipeMethodCalls.NetJson

System.Text.Json serializer for PipeMethodCalls.

PipeMethodCalls.MessagePack

MessagePack serializer for PipeMethodCalls. Uses the MessagePack-CSharp library.

LijsDev.CrystalReportsRunner.Core

API needed to use Crystal Reports Runner from caller applications.

Binom.AutoML.Contracts

Package Description

Binom.AutoML.IPCClient

Package Description

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on PipeMethodCalls:

Repository Stars
RandomEngy/VidCoder
A Blu-ray, DVD and video file transcoder for Windows.
Sidekick-Poe/Sidekick
The main repository for the Sidekick project, a companion trade tool for Path of Exile and Path of Exile 2.
Version Downloads Last Updated
4.0.3 113,139 9/8/2025
4.0.2 85,349 5/19/2024
4.0.1 178,596 4/14/2023
4.0.0 526 4/6/2023
3.2.1 26,787 3/13/2023
3.2.0 78,857 6/25/2022
3.1.1 51,302 4/2/2022
3.1.0 99,625 12/24/2021
3.0.4 18,763 9/27/2021
3.0.3 3,255 8/3/2021
3.0.2 3,130 4/4/2021
3.0.1 566 4/4/2021
3.0.0 45,438 4/4/2021
2.1.0 816 2/12/2021
2.0.2 1,569 11/17/2020
2.0.1 641 10/24/2020
2.0.0 920 8/8/2020
1.0.1 6,273 4/21/2019
1.0.0 1,177 3/20/2019

Use AssemblyQualifiedName instead of ToString() for the string representation of generic type arguments.