https://github.com/havendv/namedpipeserverstream.netframeworkversion
.NET Standard version of NamedPipeServerStream that contains PipeSecurity constructor.
https://github.com/havendv/namedpipeserverstream.netframeworkversion
access-control csharp dotnet ipc namedpipeserverstream netstandard netstandard20 pipes pipesecurity security serverstream system windows
Last synced: 6 months ago
JSON representation
.NET Standard version of NamedPipeServerStream that contains PipeSecurity constructor.
- Host: GitHub
- URL: https://github.com/havendv/namedpipeserverstream.netframeworkversion
- Owner: HavenDV
- License: mit
- Created: 2021-10-21T23:51:17.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2025-02-03T08:25:54.000Z (8 months ago)
- Last Synced: 2025-04-06T04:28:17.977Z (6 months ago)
- Topics: access-control, csharp, dotnet, ipc, namedpipeserverstream, netstandard, netstandard20, pipes, pipesecurity, security, serverstream, system, windows
- Language: C#
- Homepage:
- Size: 218 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# [NamedPipeServerStream.NetFrameworkVersion](https://github.com/HavenDV/NamedPipeServerStream.NetFrameworkVersion/)
[](https://github.com/HavenDV/NamedPipeServerStream.NetFrameworkVersion/search?l=C%23&o=desc&s=&type=Code)
[](LICENSE.md)
[](https://github.com/dotnet/standard/blob/master/docs/versions/netstandard2.0.md)
[](https://github.com/HavenDV/NamedPipeServerStream.NetFrameworkVersion/actions/workflows/dotnet.yml)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
[](https://www.nuget.org/packages/NamedPipeServerStream.NetFrameworkVersion/)
```
Install-Package NamedPipeServerStream.NetFrameworkVersion
```## Usage
```csharp
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
* [mail](mailto:havendv@gmail.com)