mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-25 10:58:20 -10:00
* 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
25 lines
671 B
C#
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);
|
|
}
|
|
}
|
|
}
|