H.Ipc.Generator 0.9.7

Suggested Alternatives

H.Ipc

Additional Details

To single package

There is a newer version of this package available.
See the version list below for details.
dotnet add package H.Ipc.Generator --version 0.9.7
NuGet\Install-Package H.Ipc.Generator -Version 0.9.7
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="H.Ipc.Generator" Version="0.9.7">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add H.Ipc.Generator --version 0.9.7
#r "nuget: H.Ipc.Generator, 0.9.7"
#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 H.Ipc.Generator as a Cake Addin
#addin nuget:?package=H.Ipc.Generator&version=0.9.7

// Install H.Ipc.Generator as a Cake Tool
#tool nuget:?package=H.Ipc.Generator&version=0.9.7

H.Ipc.Generator

Nuget

NuGet

Install-Package H.Ipc.Generator
Install-Package H.Ipc.Core
Install-Package H.Pipes

Usage

// Common interface
public interface IActionService
{
    void ShowTrayIcon();
    void HideTrayIcon();
    void SendText(string text);
}

// Server side implementation
[H.IpcGenerators.IpcServer]
public partial class ActionService : IActionService
{
    public void ShowTrayIcon()
    {
        MessageBox.Show(nameof(ShowTrayIcon));
    }

    public void HideTrayIcon()
    {
        MessageBox.Show(nameof(HideTrayIcon));
    }

    public void SendText(string text)
    {
        MessageBox.Show(text);
    }
}

// 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
client.ShowTrayIcon();

Contacts

There are no supported framework assets in this 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
0.21.0 330 3/9/2023
0.20.0 492 7/13/2022
0.19.3 455 6/19/2022
0.19.2 414 6/7/2022
0.9.11 438 5/20/2022
0.9.10 413 5/19/2022
0.9.8 470 3/16/2022
0.9.7 500 3/15/2022
0.9.6 434 3/12/2022
0.9.5 417 3/11/2022
0.9.4 444 3/10/2022
0.9.3 429 3/10/2022

⭐ Last 10 features:
- feat: Added request.Type server check. 2022-03-12
- feat: Added base RpcRequest type. 2022-03-12
- feat: Added method parameters support. 2022-03-12
- feat: Added RpcMethod based communication. 2022-03-12
- feat: Moved attributes to H.Ipc.Core library. 2022-03-12
- feat: Added #nullable enable to attributes code. 2022-03-11
- feat: Updated README. 2022-03-10
- feat: Added Client.Initilize method. 2022-03-10
- feat: Added server code generation. 2022-03-10
- feat: Added auto-detection for interface methods. 2022-03-10

🐞 Last 10 bug fixes:
- fix: Fixed request code generation for separate client/server libs. 2022-03-15
- fix: Fixed some formatting bugs. 2022-03-12
- fix: Removed net5/net6 targets from H.Ipc.Core. 2022-03-12
- fix: Fixed CI. 2022-03-10