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