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