Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 5 days ago
JSON representation

.NET Standard version of NamedPipeServerStream that contains PipeSecurity constructor.

Awesome Lists containing this project

README

        

# [NamedPipeServerStream.NetFrameworkVersion](https://github.com/HavenDV/NamedPipeServerStream.NetFrameworkVersion/)

[![Language](https://img.shields.io/badge/language-C%23-blue.svg?style=flat-square)](https://github.com/HavenDV/NamedPipeServerStream.NetFrameworkVersion/search?l=C%23&o=desc&s=&type=Code)
[![License](https://img.shields.io/github/license/HavenDV/NamedPipeServerStream.NetFrameworkVersion.svg?label=License&maxAge=86400)](LICENSE.md)
[![Requirements](https://img.shields.io/badge/Requirements-.NET%20Standard%202.0-blue.svg)](https://github.com/dotnet/standard/blob/master/docs/versions/netstandard2.0.md)
[![Build Status](https://github.com/HavenDV/NamedPipeServerStream.NetFrameworkVersion/actions/workflows/dotnet.yml/badge.svg)](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

[![NuGet](https://img.shields.io/nuget/dt/NamedPipeServerStream.NetFrameworkVersion.svg?style=flat-square&label=NamedPipeServerStream.NetFrameworkVersion)](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:[email protected])