-
Notifications
You must be signed in to change notification settings - Fork 354
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
PushStreamContent has unclear documentation #310
Comments
Thanks for contacting us. |
Hello!
"After http request" is never printed. Disposal never happen in that approach. |
@lichutin-st you're right, |
Hello!
As for me, documentation for a constructor of PushStreamContent which receives an asynchronous action looks a bit unclear.
It's said
The stream is automatically closed when the return task is completed
but actually it isn't. Here code waits forTaskSource.Task
completition that is only caused by manual callingstream.Dispose()
: linkSo this content will never be completed
And we have to close the stream manually to make it work
You can compare the constructor with another one (receiving sync action). Docs there look more correct
The text was updated successfully, but these errors were encountered: