Skip to content

.NET Standard version of NamedPipeServerStream that contains PipeSecurity constructor.

License

Notifications You must be signed in to change notification settings

HavenDV/NamedPipeServerStream.NetFrameworkVersion

Repository files navigation

Language License Requirements Build Status

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

Nuget

NuGet

Install-Package NamedPipeServerStream.NetFrameworkVersion

Usage

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);

Contacts