Welcome to mirror list, hosted at ThFree Co, Russian Federation.

StreamContent.Mono.cs « System.Net.Http « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 411119106f64ab0544f30ebfaba4911691104c44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
		{
		}
	}
}