Pipel 1.0.0
dotnet add package Pipel --version 1.0.0
NuGet\Install-Package Pipel -Version 1.0.0
<PackageReference Include="Pipel" Version="1.0.0" />
paket add Pipel --version 1.0.0
#r "nuget: Pipel, 1.0.0"
// Install Pipel as a Cake Addin #addin nuget:?package=Pipel&version=1.0.0 // Install Pipel as a Cake Tool #tool nuget:?package=Pipel&version=1.0.0
Pipel
MIT License
Overview
Simple named pipe bidirectional object transfer engine for .NET
Library that allows communication between applications on the same computer with named pipe structure. It supports sending objects with json boxing and unboxing.
Usage
To use Pipel, simply run a static method with the name parameter:
PipelEngine.Start("pipe_name");
In order to process incoming messages, you need to connect the event to the appropriate method:
PipelEngine.Receive += PipelMessageReceived;
Receive Method Sample (PipeCommand is a custom object used in the sample application)
private void PipeMessageReceived(PipelMessage message)
{
try
{
if(this.InvokeRequired)
{
this.Invoke(new MessageDelegate(PipeMessageReceived), message);
}
else
{
PipeCommand cm = PipeCommand.GetCommand(message);
if(cm.Type == PipeMessageTypes.TakePhoto)
txtMessages.AppendText(DateTime.Now.ToLongTimeString() + ":(Object) " + cm.ConvertLoad<List<int>>() + Environment.NewLine);
else if(cm.Type == PipeMessageTypes.ShowMessage)
txtMessages.AppendText(DateTime.Now.ToLongTimeString() + ":(Text) " + cm.Load + Environment.NewLine);
}
}
catch(Exception ex)
{
txtMessages.AppendText(ex.Message + Environment.NewLine);
}
}
To stop:
PipelEngine.Stop();
Send message examples:
PipelEngine.Send("Test Message", "other_app");
PipelEngine.Send(new List<int> { 125, 138, 245 }, "other_app");
Features
PipeRpc supports the following features:
- Newtonsoft.Json library is used for serialisation;
- Information on which name the incoming messages come from;
- General boxing and unboxing methods;
- Simple operation and structure
Performance
Performance tests have not yet been carried out
Method | Mean | Error | StdDev |
-------------------- |----------:|-----------:|-----------:|
ReturnComplexObject | - us | - us | - us |
Cancellation | - us | - us | - us |
ReturnInt | - us | - us | - us |
License
Copyright (c) 2023 Can Iraktan. All rights reserved
This repository is licensed under MIT License - see License
for more details.
Product | Versions 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 was computed. |
.NET Framework | net35 is compatible. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. 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. |
-
.NETFramework 3.5
- Newtonsoft.Json (>= 13.0.3)
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.3)
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 |
---|---|---|
1.0.0 | 183 | 12/14/2023 |