百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
I

IpcServiceFramework

> 包管理
开源

.NET Core 进程间通信框架

370 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

.NET Core 进程间通信框架

CI build Stable build

IpcServiceFramework

A .NET Core 3.1 based lightweight framework for efficient inter-process communication. Named pipeline and TCP support out-of-the-box, extensible with other protocols.

NuGet packages

Name Purpose Status
JKang.IpcServiceFramework.Client.NamedPipe Client SDK to consume IPC service over Named pipe
JKang.IpcServiceFramework.Client.Tcp Client SDK to consume IPC service over TCP
JKang.IpcServiceFramework.Hosting.NamedPipe Server SDK to run Named pipe IPC service endpoint
JKang.IpcServiceFramework.Hosting.Tcp Server SDK to run TCP IPC service endpoint

Usage

  1. Create an interface as service contract and package it in an assembly to be referenced by server and client applications, for example:

    csharp
    public interface IInterProcessService
    {
        string ReverseString(string input);
    }
  2. Implement the service in server application, for example:

    csharp
    class InterProcessService : IInterProcessService
    {
        public string ReverseString(string input)
        {
            char[] charArray = input.ToCharArray();
            Array.Reverse(charArray);
            return new string(charArray);
        }
    }
  3. Install the following NuGet packages in server application:

    powershell
    > Install-Package Microsoft.Extensions.Hosting
    > Install-Package JKang.IpcServiceFramework.Hosting.NamedPipe
  4. Register the service implementation and configure IPC endpoint(s):

…
  1. Install the following NuGet package in client application:

    powershell
    > Install-Package JKang.IpcServiceFramework.Client.NamedPipe
  2. Invoke the server

    csharp
    // register IPC clients
    ServiceProvider serviceProvider = new ServiceCollection()
        .AddNamedPipeIpcClient("client1", pipeName: "pipeinternal")
        .BuildServiceProvider();
    
    // resolve IPC client factory
    IIpcClientFactory clientFactory = serviceProvider
        .GetRequiredService>();
    
    // create client
    IIpcClient client = clientFactory.CreateClient("client1");
    
    string output = await client.InvokeAsync(x => x.ReverseString(input));

FAQs

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#dotnetcoreinterprocess-communicationnamed-pipestcp

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类包管理
定价开源

> 相关工具

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image