Skip to content

Add examples for *PipeServerStream creation with PipeSecurity (ACLs) #3371

@carlossanlop

Description

@carlossanlop

It might be good to add examples that explain how to specify the PipeSecurity
(ACL) in a NamedPipeServerStream and in an AnonymourPipeServerStream. We have usage examples on how to created *PipeServerStream objects, but nothing related to ACLs.

I found a simple example here that could inspire ours: https://weblogs.asp.net/gunnarpeipman/writing-simple-named-pipes-server-in-c

Just one important thing to keep in mind: that example sets the ACL after the creation of the NamedPipeServerStream.

I am currently working on this issue, which will add a new extension method that will set the PipeSecurity at the moment when the NamedPipeServerStream is created (PR here). When the time comes, I will make sure the documentation for this new API will have a usage example so the user can set ACL at the moment of the pipe creation.

CC @mairaw @JeremyKuhne

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3Indicates issues/PRs that are low priorityarea-System.IOdoc-enhancementImprove the current contentexample-requestIndicates issues requesting samples

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions