PipeClient 1.0.2.6
Suggested Alternatives
Additional Details
Please use NamedPipeClient instead
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package PipeClient --version 1.0.2.6
NuGet\Install-Package PipeClient -Version 1.0.2.6
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="PipeClient" Version="1.0.2.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PipeClient --version 1.0.2.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PipeClient, 1.0.2.6"
#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 PipeClient as a Cake Addin
#addin nuget:?package=PipeClient&version=1.0.2.6
// Install PipeClient as a Cake Tool
#tool nuget:?package=PipeClient&version=1.0.2.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Pipe Client
A Client
for inter-process communication over a named pipe using a shared secret to execute a Handler
The Client
sends Data
to the Server
so the Server
can execute the Handler
Data
is string
using PipeClientRPC;
namespace PipeClientConsole
{
internal class PipeClientConsole
{
readonly static bool switchTest = true;
static void Main(string[] args)
{
string path = "C:\\Windows\\notepad.exe";
string secret = "SDh&SarvecGr!eCtn@";
string pipeName = "testpipe";
string serverName = ".";
if (args.Length > 0)
{
path = args[0];
}
if (args.Length > 1)
{
secret = args[1];
}
if (args.Length > 2)
{
pipeName = args[2];
}
if (args.Length > 3)
{
serverName = args[3];
}
bool success;
if (switchTest)
{
success = PipeClient.NamedPipeClientRequest("DidYouGetThis", ResponseHandler, secret, pipeName, serverName);
}
else
{
success = PipeClient.NamedPipeClientRequest(path, secret, pipeName, serverName);
}
Console.WriteLine(success);
}
static readonly Action<string> ResponseHandler = (args) =>
{
Console.WriteLine("Server Said: " + args);
};
}
}
Pipe Server
You need the PipeServer
to use this
using Pipe.Com;
using PipeServerRPC;
using System.Diagnostics;
namespace PipeServerConsole
{
internal class PipeServerConsole
{
readonly static bool switchTest = true;
static readonly PipeServer PipeServer = new("testpipe", "SDh&SarvecGr!eCtn@");
private static readonly Action<string> LaunchApplicationHandler = (clientWord) =>
{
ProcessStartInfo psi = new()
{
FileName = clientWord,
UseShellExecute = true,
RedirectStandardError = false,
RedirectStandardOutput = false,
RedirectStandardInput = false,
};
Process.Start(psi);
};
public static string ServerHandler(string clientWord)
{
if (clientWord == "DidYouGetThis")
{
return "Yes";
}
else
{
return "No";
}
}
static void Main()
{
Console.WriteLine(PipeGlobalTime.ElapsedTicks);
PipeApplicationGlobals.SetTimeoutMs(500);
if (switchTest)
{
ThreadPool.QueueUserWorkItem((_) => { PipeServer.StartServer(ServerHandler); }, null);
}
else
{
ThreadPool.QueueUserWorkItem((_) => { PipeServer.StartServer(LaunchApplicationHandler); }, null);
}
Console.WriteLine("Press any key to dispose server");
Console.ReadLine();
PipeServer.Dispose();
Console.WriteLine("Press any key to exit");
Console.ReadLine();
}
}
}
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 | 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.
-
.NETStandard 2.0
- PipeMessage (>= 1.0.2.6)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PipeClient:
Package | Downloads |
---|---|
Wedonek.RpcClient
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|
-----------------
Please use the most recent version visible on Nuget, old versions are hidden but can still be downloaded indirectly