-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
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.