Files
dotnet-runtime/src/libraries/System.Net.Http/tests/FunctionalTests/MultiInterfaceStreamContent.cs
T
David Shulman 0e9da04ab9 Port TFS WinRT interop tests for HttpClient for UAP (dotnet/corefx#22239)
* Port TFS WinRT interop tests for HttpClient for UAP

Bring over the last of the WinRT interop tests for HttpClient. These
tests deal with interop between WinRT stream classes and .NET stream
classes.

Fixes dotnet/corefx#9044

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/7f4b8837ef77c3784cde0f57d17a5e656df86cb4
2017-07-14 09:01:11 -07:00

25 lines
671 B
C#

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.IO;
using System.Threading.Tasks;
namespace System.Net.Http.Functional.Tests
{
public class MultiInterfaceStreamContent : StreamContent
{
Stream _content;
public MultiInterfaceStreamContent(Stream content) : base(content)
{
_content = content;
}
protected override Task<Stream> CreateContentReadStreamAsync()
{
return Task.FromResult<Stream>(_content);
}
}
}