Add CreateNamedPipeServerStream to named pipes options #56568
Labels
api-approved
API was approved in API review, it can be implemented
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Uh oh!
There was an error while loading. Please reload this page.
Background and Motivation
Addresses #53306
Named pipes transport allows pipe security to be configured, but it's applied to all of server's named pipe endpoints. An API is needed to customize endpoint security when they're created.
Proposed API
Adds
CreateNamedPipeServerStream
func to options, allowing advanced users to customize creating endpoints. They can choose to specify differentPipeSecurity
options on a per-endpoint basis.This feature is modeled after
SocketTransportOptions.CreateBoundListenSocket
.CreateNamedPipeServerStreamContext
is added because more information than just the endpoint is needed when creating aNamedPipeServerStream
. An object provides flexibility for more data to be provided, if needed. Allocations aren't a concern because the context is only created when a stream is created, and streams are cached and reused.Usage Examples
Alternative Designs
Risks
The text was updated successfully, but these errors were encountered: