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