2 writes to Body
Microsoft.AspNetCore.Http (1)
Internal\BufferingHelper.cs (1)
37section.Body = fileStream;
Microsoft.AspNetCore.WebUtilities (1)
MultipartReader.cs (1)
102return new MultipartSection() { Headers = headers, Body = _currentStream, BaseStreamOffset = baseStreamOffset };
23 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 (14)
MultipartReaderTests.cs (14)
118await section.Body.CopyToAsync(buffer); 161await section.Body.CopyToAsync(buffer); 178await section.Body.CopyToAsync(buffer); 195await section.Body.CopyToAsync(buffer); 204await section.Body.CopyToAsync(buffer); 221await section.Body.CopyToAsync(buffer); 230await section.Body.CopyToAsync(buffer); 247await section.Body.CopyToAsync(buffer); 256await section.Body.CopyToAsync(buffer); 265await section.Body.CopyToAsync(buffer); 293var read = section.Body.Read(buffer, 0, buffer.Length); 302read = section.Body.Read(buffer, 0, buffer.Length); 341await section.Body.CopyToAsync(buffer); 376await section.Body.CopyToAsync(buffer);