namespace Microsoft.AspNetCore.WebUtilities {
public class BufferedReadStream : Stream {
public Task<bool> EnsureBufferedAsync(int minCount, CancellationToken cancellationToken);
public Task<bool> EnsureBufferedAsync(CancellationToken cancellationToken);
public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken);
public Task<string> ReadLineAsync(int lengthLimit, CancellationToken cancellationToken);
+ public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken);
}
public class FileBufferingReadStream : Stream {
public override ValueTask DisposeAsync();
+ public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken);
}
public sealed class FileBufferingWriteStream : Stream {
public override ValueTask DisposeAsync();
public Task DrainBufferAsync(PipeWriter destination, CancellationToken cancellationToken = default(CancellationToken));
public Task DrainBufferAsync(Stream destination, CancellationToken cancellationToken = default(CancellationToken));
+ public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken);
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken);
public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default(CancellationToken));
}
public class FormMultipartSection {
+ public ValueTask<string> GetValueAsync(CancellationToken cancellationToken);
}
public class HttpResponseStreamWriter : TextWriter {
public override ValueTask DisposeAsync();
+ public override Task WriteLineAsync(char value);
+ public override Task WriteLineAsync(char[] values, int index, int count);
+ public override Task WriteLineAsync(string? value);
}
public static class MultipartSectionStreamExtensions {
public static Task<string> ReadAsStringAsync(this MultipartSection section);
+ public static ValueTask<string> ReadAsStringAsync(this MultipartSection section, CancellationToken cancellationToken);
}
}