StreamContent.Mono.cs 560 B

12345678910111213141516171819
  1. using System.IO;
  2. using System.Threading;
  3. namespace System.Net.Http
  4. {
  5. partial class StreamContent
  6. {
  7. //
  8. // Workarounds for poor .NET API
  9. // Instead of having SerializeToStreamAsync with CancellationToken as public API. Only LoadIntoBufferAsync
  10. // called internally from the send worker can be cancelled and user cannot see/do it
  11. //
  12. [Obsolete ("FIXME: Please talk to Martin about this; see https://github.com/mono/mono/issues/12996.")]
  13. internal StreamContent (Stream content, CancellationToken cancellationToken)
  14. : this (content)
  15. {
  16. }
  17. }
  18. }