mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-27 13:19:31 -10:00
Commit migrated from https://github.com/dotnet/corefx/commit/7cad8486cbabbce0236bdf530e30db7036335524
25 lines
720 B
C#
25 lines
720 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;
|
|
using System.IO;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace System.Net.Http.Functional.Tests
|
|
{
|
|
public sealed class RepeatedFlushContent : StringContent
|
|
{
|
|
public RepeatedFlushContent(string content) : base(content)
|
|
{
|
|
}
|
|
|
|
protected override Task SerializeToStreamAsync(Stream stream, TransportContext context)
|
|
{
|
|
stream.Flush();
|
|
stream.Flush();
|
|
return base.SerializeToStreamAsync(stream, context);
|
|
}
|
|
}
|
|
}
|