/coreipc

WCF-like service model API for communication over named pipes. .NET standard and node.js clients.

MIT LicenseMIT

Build Status MyGet (dev)

CoreIpc

WCF-like service model API for communication over named pipes. .NET standard and node.js clients.

  • async
  • json serialization
  • DI integration
  • cancellation
  • timeouts
  • callbacks
  • automatic reconnect
  • interception
  • configurable task scheduler
  • client authentication and impersonation
  • SSPI encryption and signing

Check the tests and the sample.

// configure and start the server
_ = new ServiceHostBuilder(serviceProvider)
    .UseNamedPipes(new NamedPipeSettings("computing")) 
    .AddEndpoint<IComputingService>()
    .Build()
    .RunAsync();
// configure the client
var computingClient = 
    new NamedPipeClientBuilder<IComputingService>("computing")
    .Build();
// call a remote method
var result = await computingClient.AddFloat(1, 4, cancellationToken);