1 instantiation of MultipartSection
Microsoft.AspNetCore.WebUtilities (1)
MultipartReader.cs (1)
102return new MultipartSection() { Headers = headers, Body = _currentStream, BaseStreamOffset = baseStreamOffset };
28 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)
82/// Reads the next <see cref="MultipartSection"/>. 87public 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 (10)
MultipartReaderTests.cs (10)
113var section = await reader.ReadNextSectionAsync(); 156var section = await reader.ReadNextSectionAsync(); 173var section = await reader.ReadNextSectionAsync(); 190var section = await reader.ReadNextSectionAsync(); 216var section = await reader.ReadNextSectionAsync(); 242var section = await reader.ReadNextSectionAsync(); 289var section = await reader.ReadNextSectionAsync(); 336var section = await reader.ReadNextSectionAsync(); 371var section = await reader.ReadNextSectionAsync(); 389var section = await reader.ReadNextSectionAsync();