34 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 (30)
MultipartReaderTests.cs (30)
113var section = await reader.ReadNextSectionAsync(); 121Assert.Null(await reader.ReadNextSectionAsync()); 133var exception = await Assert.ThrowsAsync<InvalidDataException>(() => reader.ReadNextSectionAsync()); 146var exception = await Assert.ThrowsAsync<InvalidDataException>(() => reader.ReadNextSectionAsync()); 161var exception = await Assert.ThrowsAsync<InvalidDataException>(() => reader.ReadNextSectionAsync()); 179var section = await reader.ReadNextSectionAsync(); 193var section = await reader.ReadNextSectionAsync(); 201Assert.Null(await reader.ReadNextSectionAsync()); 210var section = await reader.ReadNextSectionAsync(); 218Assert.Null(await reader.ReadNextSectionAsync()); 227var section = await reader.ReadNextSectionAsync(); 235section = await reader.ReadNextSectionAsync(); 244Assert.Null(await reader.ReadNextSectionAsync()); 253var section = await reader.ReadNextSectionAsync(); 261section = await reader.ReadNextSectionAsync(); 270Assert.Null(await reader.ReadNextSectionAsync()); 279var section = await reader.ReadNextSectionAsync(); 287section = await reader.ReadNextSectionAsync(); 296section = await reader.ReadNextSectionAsync(); 305Assert.Null(await reader.ReadNextSectionAsync()); 326var section = await reader.ReadNextSectionAsync(); 334section = await reader.ReadNextSectionAsync(); 345section = await reader.ReadNextSectionAsync(); 373var section = await reader.ReadNextSectionAsync(); 381Assert.Null(await reader.ReadNextSectionAsync()); 408var section = await reader.ReadNextSectionAsync(); 416Assert.Null(await reader.ReadNextSectionAsync()); 426var section = await reader.ReadNextSectionAsync(); 437var section = await reader.ReadNextSectionAsync(); 451Assert.Null(await reader.ReadNextSectionAsync());