IpcServiceFramework.Core.Net 3.2.6

dotnet add package IpcServiceFramework.Core.Net --version 3.2.6
                    
NuGet\Install-Package IpcServiceFramework.Core.Net -Version 3.2.6
                    
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="IpcServiceFramework.Core.Net" Version="3.2.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="IpcServiceFramework.Core.Net" Version="3.2.6" />
                    
Directory.Packages.props
<PackageReference Include="IpcServiceFramework.Core.Net" />
                    
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 IpcServiceFramework.Core.Net --version 3.2.6
                    
#r "nuget: IpcServiceFramework.Core.Net, 3.2.6"
                    
#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 IpcServiceFramework.Core.Net@3.2.6
                    
#: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=IpcServiceFramework.Core.Net&version=3.2.6
                    
Install as a Cake Addin
#tool nuget:?package=IpcServiceFramework.Core.Net&version=3.2.6
                    
Install as a Cake Tool

IpcServiceFramework 简介

本开源项目基于 JKang.IpcServiceFramework项目继续扩展完善。

.net8.0中序列化方法改用System.Text.Json中的JsonSerializer静态方法

.netstandard2.0版本仍旧使用Newtonsoft.Json进行序列化

CI build Stable build
Build Status Build Status

IpcServiceFramework

A .NET 8.0 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
IpcServiceFramework.Core.Net SDK Core NuGet version
IpcServiceFramework.Client.Net Client SDK to consume IPC service NuGet version
IpcServiceFramework.Hosting.Net Server SDK to run IPC service endpoint NuGet version
IpcServiceFramework.Client.NamedPipe.Net Client SDK to consume IPC service over Named pipe NuGet version
IpcServiceFramework.Client.Tcp.Net Client SDK to consume IPC service over TCP NuGet version
IpcServiceFramework.Hosting.NamedPipe.Net Server SDK to run Named pipe IPC service endpoint NuGet version
IpcServiceFramework.Hosting.Tcp.Net Server SDK to run TCP IPC service endpoint NuGet version

Usage

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

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

    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:

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

    class Program
    {
        public static void Main(string[] args)
        {
            CreateHostBuilder(args).Build().Run();
        }
    
        public static IHostBuilder CreateHostBuilder(string[] args) =>
            Host.CreateDefaultBuilder(args)
                .ConfigureServices(services =>
                {
                    services.AddScoped<IInterProcessService, InterProcessService>();
                })
                .ConfigureIpcHost(builder =>
                {
                    // configure IPC endpoints
                    builder.AddNamedPipeEndpoint<IInterProcessService>(pipeName: "pipeinternal");
                })
                .ConfigureLogging(builder =>
                {
                    // optionally configure logging
                    builder.SetMinimumLevel(LogLevel.Information);
                });
    }
    
  5. Install the following NuGet package in client application:

    > Install-Package IpcServiceFramework.Client.NamedPipe.Net
    
  6. Invoke the server

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

FAQs

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on IpcServiceFramework.Core.Net:

Package Downloads
IpcServiceFramework.Client.Net

本开源项目基于 JKang.IpcServiceFramework项目继续扩展完善。.net8.0中序列化方法改用System.Text.Json中的JsonSerializer静态方法.netstandard2.0版本仍旧使用Newtonsoft.Json进行序列化

IpcServiceFramework.Hosting.Net

本开源项目基于 JKang.IpcServiceFramework项目继续扩展完善。.net8.0中序列化方法改用System.Text.Json中的JsonSerializer静态方法.netstandard2.0版本仍旧使用Newtonsoft.Json进行序列化

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.2.6 423 10/2/2025
3.2.1 420 10/2/2025

此包是 JKang.IpcServiceFramework 的修改包,所有核心源码都为原作者提供。本开源项目基于 JKang.IpcServiceFramework项目继续扩展完善。.net8.0中序列化方法改用System.Text.Json中的JsonSerializer静态方法.netstandard2.0版本仍旧使用Newtonsoft.Json进行序列化。