H.Ipc.Generator 0.9.5

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.5
                    
NuGet\Install-Package H.Ipc.Generator -Version 0.9.5
                    
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.5">
  <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.
<PackageVersion Include="H.Ipc.Generator" Version="0.9.5" />
                    
Directory.Packages.props
<PackageReference Include="H.Ipc.Generator">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
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 H.Ipc.Generator --version 0.9.5
                    
#r "nuget: H.Ipc.Generator, 0.9.5"
                    
#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 H.Ipc.Generator@0.9.5
                    
#: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=H.Ipc.Generator&version=0.9.5
                    
Install as a Cake Addin
#tool nuget:?package=H.Ipc.Generator&version=0.9.5
                    
Install as a Cake Tool

H.Ipc.Generator

Nuget

NuGet

Install-Package H.Ipc.Generator

Usage

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

// 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));
    }
}

// Client side implementation
[H.IpcGenerators.IpcClient]
public partial class ActionServiceClient : IActionService
{
}

// Server initialization
var server = new PipeServer<string>(ServerName);
var service = new ActionService();
service.Initialize(server);
await server.StartAsync();

// Client initialization
var client = new PipeClient<string>(ServerName);
var service = new ActionServiceClient();
service.Initialize(pipeClient);
await server.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.

⭐ Last 10 features:
- 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
- feat: Initial commit. 2022-03-10
- feat: initial commit. 2022-03-01

🐞 Last 10 bug fixes:
- fix: Fixed CI. 2022-03-10