Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add temporary workaround for internal StreamContent constructor.
(cherry picked from commit 23762ef)
- Loading branch information
1 parent
9eb2dbf
commit 7ecc538
Showing
4 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
Submodule corefx
updated
1 files
+1 −1 | src/System.Net.Http/src/System/Net/Http/StreamContent.cs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.IO; | ||
using System.Threading; | ||
|
||
namespace System.Net.Http | ||
{ | ||
partial class StreamContent | ||
{ | ||
// | ||
// Workarounds for poor .NET API | ||
// Instead of having SerializeToStreamAsync with CancellationToken as public API. Only LoadIntoBufferAsync | ||
// called internally from the send worker can be cancelled and user cannot see/do it | ||
// | ||
[Obsolete ("FIXME: Please talk to Martin about this; see https://github.com/mono/mono/issues/12996.")] | ||
internal StreamContent (Stream content, CancellationToken cancellationToken) | ||
: this (content) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters