H.Ipc.Generator
0.9.8
To single package
See the version list below for details.
dotnet add package H.Ipc.Generator --version 0.9.8
NuGet\Install-Package H.Ipc.Generator -Version 0.9.8
<PackageReference Include="H.Ipc.Generator" Version="0.9.8"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add H.Ipc.Generator --version 0.9.8
#r "nuget: H.Ipc.Generator, 0.9.8"
// Install H.Ipc.Generator as a Cake Addin #addin nuget:?package=H.Ipc.Generator&version=0.9.8 // Install H.Ipc.Generator as a Cake Tool #tool nuget:?package=H.Ipc.Generator&version=0.9.8
H.Ipc.Generator
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
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- H.Formatters.System.Text.Json (>= 12.0.31)
- H.Ipc.Core (>= 0.9.8)
- H.Pipes.AccessControl (>= 2.0.31)
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 ExceptionOccurred event to generated code. 2022-03-16
- feat: Replaced usings to `global::` prefixes. 2022-03-16
- feat: Changed implementation to use IPipeConnection. 2022-03-16
- 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
🐞 Last 10 bug fixes:
- feat: Replaced usings to `global::` prefixes. 2022-03-16
- 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