1 instantiation of MultipartSection
Microsoft.AspNetCore.WebUtilities (1)
MultipartReader.cs (1)
103return new MultipartSection() { Headers = headers, Body = _currentStream, BaseStreamOffset = baseStreamOffset };
31 references to MultipartSection
Microsoft.AspNetCore.Http (3)
Features\FormFeature.cs (1)
235var section = await multipartReader.ReadNextSectionAsync(cancellationToken);
Internal\BufferingHelper.cs (2)
27public static MultipartSection EnableRewind(this MultipartSection section, Action<IDisposable> registerForDispose,
Microsoft.AspNetCore.WebUtilities (13)
FileMultipartSection.cs (3)
20public FileMultipartSection(MultipartSection section) 30public FileMultipartSection(MultipartSection section, ContentDispositionHeaderValue? header) 50public MultipartSection Section { get; }
FormMultipartSection.cs (3)
20public FormMultipartSection(MultipartSection section) 30public FormMultipartSection(MultipartSection section, ContentDispositionHeaderValue? header) 45public MultipartSection Section { get; }
MultipartReader.cs (2)
79/// Reads the next <see cref="MultipartSection"/>. 84public async Task<MultipartSection?> ReadNextSectionAsync(CancellationToken cancellationToken = new CancellationToken())
MultipartSectionConverterExtensions.cs (3)
18public static FileMultipartSection? AsFileSection(this MultipartSection section) 37public static FormMultipartSection? AsFormDataSection(this MultipartSection section) 56public static ContentDispositionHeaderValue? GetContentDispositionHeader(this MultipartSection section)
MultipartSectionStreamExtensions.cs (2)
19public static Task<string> ReadAsStringAsync(this MultipartSection section) 28public static async ValueTask<string> ReadAsStringAsync(this MultipartSection section, CancellationToken cancellationToken)
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (2)
MultipartReaderBenchmark.cs (2)
99MultipartSection section; 121MultipartSection section;
Microsoft.AspNetCore.WebUtilities.Tests (13)
MultipartReaderTests.cs (13)
112var section = await reader.ReadNextSectionAsync(); 178var section = await reader.ReadNextSectionAsync(); 192var section = await reader.ReadNextSectionAsync(); 209var section = await reader.ReadNextSectionAsync(); 226var section = await reader.ReadNextSectionAsync(); 252var section = await reader.ReadNextSectionAsync(); 278var section = await reader.ReadNextSectionAsync(); 325var section = await reader.ReadNextSectionAsync(); 362var section = await reader.ReadNextSectionAsync(); 409var section = await reader.ReadNextSectionAsync(); 444var section = await reader.ReadNextSectionAsync(); 462var section = await reader.ReadNextSectionAsync(); 473var section = await reader.ReadNextSectionAsync();