2 writes to Body
Microsoft.AspNetCore.Http (1)
Internal\BufferingHelper.cs (1)
37
section.
Body
= fileStream;
Microsoft.AspNetCore.WebUtilities (1)
MultipartReader.cs (1)
103
return new MultipartSection() { Headers = headers,
Body
= _currentStream, BaseStreamOffset = baseStreamOffset };
29 references to Body
Microsoft.AspNetCore.Http (5)
Features\FormFeature.cs (4)
259
await section.
Body
.DrainAsync(cancellationToken);
268
file = new FormFile(_request.Body, section.BaseStreamOffset.GetValueOrDefault(), section.
Body
.Length, name, fileName);
273
file = new FormFile(section.
Body
, 0, section.
Body
.Length, name, fileName);
Internal\BufferingHelper.cs (1)
33
var body = section.
Body
;
Microsoft.AspNetCore.WebUtilities (3)
FileMultipartSection.cs (1)
55
public Stream? FileStream => Section.
Body
;
MultipartSectionStreamExtensions.cs (2)
32
if (section.
Body
is null)
47
section.
Body
,
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
MultipartReaderBenchmark.cs (1)
127
section?.
Body
.CopyTo(NullStream.Instance);
Microsoft.AspNetCore.WebUtilities.Tests (20)
MultipartReaderTests.cs (20)
117
await section.
Body
.CopyToAsync(buffer);
182
await section.
Body
.CopyToAsync(buffer);
197
await section.
Body
.CopyToAsync(buffer);
214
await section.
Body
.CopyToAsync(buffer);
231
await section.
Body
.CopyToAsync(buffer);
240
await section.
Body
.CopyToAsync(buffer);
257
await section.
Body
.CopyToAsync(buffer);
266
await section.
Body
.CopyToAsync(buffer);
283
await section.
Body
.CopyToAsync(buffer);
292
await section.
Body
.CopyToAsync(buffer);
301
await section.
Body
.CopyToAsync(buffer);
330
var stream1 = section.
Body
;
337
var stream2 = section.
Body
;
366
var read = section.
Body
.Read(buffer, 0, buffer.Length);
375
read = section.
Body
.Read(buffer, 0, buffer.Length);
414
await section.
Body
.CopyToAsync(buffer);
449
await section.
Body
.CopyToAsync(buffer);
478
var read = section.
Body
.Read(buffer, 2, buffer.Length - 2);
481
read = section.
Body
.Read(buffer, 1, buffer.Length - 1);
484
read = section.
Body
.Read(buffer, 0, buffer.Length);