-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Proposal - Stream to Pipe Wrapper #26676
Comments
re your 2 - indeed, not all for my pre-existing implementation, I ended up using factory methods: happy to provide my implementation for examples/discussion, but actively not linking to it yet to not poison the well |
I would be happy with a StreamPipeWriter and StreamPipeReader and have this as well but I think they could be separate unless there is a drive for both in one review. This should throw if the pipe isn't writable and readable in my opinion. |
https://github.com/dotnet/corefx/issues/27268 "Add IPipeReader and IPipeWriter and have IDuplexPipe inherit from them" 😢 |
@benaadams I'm just going to point out the other missed opportunity here... |
In saying all that..... There aren't any endpoints so maybe it's a blessing rather than a curse? |
In support of why we need at least a |
Rationale
Currently pipelines has no "endpoints" to speak of. There is a vast array of endpoints and "middleware" available in streams. In order to bridge the gap a class should be provided to wrap a stream and provide a pipe on top of it. This would provide access to the rich tapestry of streams to the new world of pipelines.
I believe that both myself @mgravell and aspnetcore have implemented these a number of times so it is worth this being a type provided by the BCL
API Shape
The following API is proposed.
Open questions
/cc @geoffkizer @stephentoub @mgravell @davidfowl @benaadams
Related #25087
Related #26668
The text was updated successfully, but these errors were encountered: