This package adds original NamedPipeServerStream constructors from Net.Framework to NetStandard See System.IO.Pipes.NamedPipeServerStreamConstructors.New method Features: - Completely repeats constructor behavior from .Net Framework (including exceptions) - Has a strong name - Restored from decompiled code. No changes from the original - Official dependencies only - Tested
$ dotnet add package NamedPipeServerStream.NetFrameworkVersionFeatures:
Install-Package NamedPipeServerStream.NetFrameworkVersion
using System.IO.Pipes;
var pipeSecurity = new PipeSecurity();
pipeSecurity.AddAccessRule(new PipeAccessRule(new SecurityIdentifier(WellKnownSidType.BuiltinUsersSid, null), PipeAccessRights.ReadWrite, AccessControlType.Allow));
using var serverStream = NamedPipeServerStreamConstructors.New(pipeName, PipeDirection.InOut, 1, PipeTransmissionMode.Byte, PipeOptions.Asynchronous | PipeOptions.WriteThrough, 0, 0, pipeSecurity);
6.0M