RoccoZero.H.Ipc
2.0.0
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 RoccoZero.H.Ipc --version 2.0.0
NuGet\Install-Package RoccoZero.H.Ipc -Version 2.0.0
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="RoccoZero.H.Ipc" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RoccoZero.H.Ipc" Version="2.0.0" />
<PackageReference Include="RoccoZero.H.Ipc" />
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 RoccoZero.H.Ipc --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RoccoZero.H.Ipc, 2.0.0"
#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 RoccoZero.H.Ipc@2.0.0
#: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=RoccoZero.H.Ipc&version=2.0.0
#tool nuget:?package=RoccoZero.H.Ipc&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
H.Ipc
This generator allows you to generate boilerplate code for H.Pipes based on the interface you specify. Generation example: https://github.com/HavenDV/H.ProxyFactory/issues/7#issuecomment-1072287342
Nuget
Install-Package H.Ipc
Usage
// Common interface
public interface IActionService
{
Task ShowTrayIcon();
Task HideTrayIcon();
Task SendText(string text);
Task<int> GetAnswer(string question);
}
// Server side implementation
[H.IpcGenerators.IpcServer]
public partial class ActionService : IActionService
{
public Task ShowTrayIcon()
{
MessageBox.Show(nameof(ShowTrayIcon));
return Task.CompletedTask;
}
public Task HideTrayIcon()
{
MessageBox.Show(nameof(HideTrayIcon));
return Task.CompletedTask;
}
public Task SendText(string text)
{
MessageBox.Show(text);
return Task.CompletedTask;
}
public async Task<int> GetAnswer(string question)
{
return await Simulator.CalculateAnswer(question);
}
}
// Client side implementation
[H.IpcGenerators.IpcClient]
public partial class ActionServiceClient : IActionService
{
}
// Server initialization
await using var server = new PipeServer<string>(ServerName);
var service = new ActionService();
service.Initialize(server);
await server.StartAsync();
// Client initialization
await using var client = new PipeClient<string>(ServerName);
var service = new ActionServiceClient();
service.Initialize(client);
await client.ConnectAsync();
// Client usage
await client.ShowTrayIcon();
await client.SendText("Hello world!");
var result = await client.GetAnswer("What's the answer to the ultimate question of life, the universe, and everything?");
Notes
The generated code currently requires C# version 8 and above. You can enable this using the following code in your .csproj file:
<PropertyGroup>
<LangVersion>latest</LangVersion>
</PropertyGroup>
Contacts
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- H.Pipes.AccessControl (>= 15.0.0)
- MessagePack (>= 3.1.4)
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 |
|---|