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 };
27 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 (18)
MultipartReaderTests.cs (18)
118
await section.
Body
.CopyToAsync(buffer);
183
await section.
Body
.CopyToAsync(buffer);
198
await section.
Body
.CopyToAsync(buffer);
215
await section.
Body
.CopyToAsync(buffer);
232
await section.
Body
.CopyToAsync(buffer);
241
await section.
Body
.CopyToAsync(buffer);
258
await section.
Body
.CopyToAsync(buffer);
267
await section.
Body
.CopyToAsync(buffer);
284
await section.
Body
.CopyToAsync(buffer);
293
await section.
Body
.CopyToAsync(buffer);
302
await section.
Body
.CopyToAsync(buffer);
330
var read = section.
Body
.Read(buffer, 0, buffer.Length);
339
read = section.
Body
.Read(buffer, 0, buffer.Length);
378
await section.
Body
.CopyToAsync(buffer);
413
await section.
Body
.CopyToAsync(buffer);
442
var read = section.
Body
.Read(buffer, 2, buffer.Length - 2);
445
read = section.
Body
.Read(buffer, 1, buffer.Length - 1);
448
read = section.
Body
.Read(buffer, 0, buffer.Length);