38 references to ReadNextSectionAsync
Microsoft.AspNetCore.Http (2)
Features\FormFeature.cs (2)
235var section = await multipartReader.ReadNextSectionAsync(cancellationToken); 302section = await multipartReader.ReadNextSectionAsync(cancellationToken);
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (2)
MultipartReaderBenchmark.cs (2)
102section = await reader.ReadNextSectionAsync(); 124section = await reader.ReadNextSectionAsync();
Microsoft.AspNetCore.WebUtilities.Tests (34)
MultipartReaderTests.cs (34)
112var section = await reader.ReadNextSectionAsync(); 120Assert.Null(await reader.ReadNextSectionAsync()); 132var exception = await Assert.ThrowsAsync<InvalidDataException>(() => reader.ReadNextSectionAsync()); 145var exception = await Assert.ThrowsAsync<InvalidDataException>(() => reader.ReadNextSectionAsync()); 160var exception = await Assert.ThrowsAsync<InvalidDataException>(() => reader.ReadNextSectionAsync()); 178var section = await reader.ReadNextSectionAsync(); 192var section = await reader.ReadNextSectionAsync(); 200Assert.Null(await reader.ReadNextSectionAsync()); 209var section = await reader.ReadNextSectionAsync(); 217Assert.Null(await reader.ReadNextSectionAsync()); 226var section = await reader.ReadNextSectionAsync(); 234section = await reader.ReadNextSectionAsync(); 243Assert.Null(await reader.ReadNextSectionAsync()); 252var section = await reader.ReadNextSectionAsync(); 260section = await reader.ReadNextSectionAsync(); 269Assert.Null(await reader.ReadNextSectionAsync()); 278var section = await reader.ReadNextSectionAsync(); 286section = await reader.ReadNextSectionAsync(); 295section = await reader.ReadNextSectionAsync(); 304Assert.Null(await reader.ReadNextSectionAsync()); 323await reader.ReadNextSectionAsync(); // skip text field section 325var section = await reader.ReadNextSectionAsync(); 332section = await reader.ReadNextSectionAsync(); 339Assert.Null(await reader.ReadNextSectionAsync()); 362var section = await reader.ReadNextSectionAsync(); 370section = await reader.ReadNextSectionAsync(); 381section = await reader.ReadNextSectionAsync(); 409var section = await reader.ReadNextSectionAsync(); 417Assert.Null(await reader.ReadNextSectionAsync()); 444var section = await reader.ReadNextSectionAsync(); 452Assert.Null(await reader.ReadNextSectionAsync()); 462var section = await reader.ReadNextSectionAsync(); 473var section = await reader.ReadNextSectionAsync(); 487Assert.Null(await reader.ReadNextSectionAsync());