1 write to FileStream
Microsoft.AspNetCore.Mvc.Core (1)
FileStreamResult.cs (1)
43
FileStream
= fileStream;
16 references to FileStream
Microsoft.AspNetCore.Mvc.Core (4)
Infrastructure\FileStreamResultExecutor.cs (4)
31
await using (result.
FileStream
)
36
if (result.
FileStream
.CanSeek)
38
fileLength = result.
FileStream
.Length;
84
return WriteFileAsync(context.HttpContext, result.
FileStream
, range, rangeLength);
Microsoft.AspNetCore.Mvc.Core.Test (6)
ControllerBaseTest.cs (4)
1873
Assert.Same(fileStream, result.
FileStream
);
1902
Assert.Same(fileStream, result.
FileStream
);
1926
Assert.Same(fileStream, result.
FileStream
);
1954
Assert.Same(fileStream, result.
FileStream
);
FileStreamResultTest.cs (2)
50
Assert.Equal(stream, result.
FileStream
);
65
Assert.Equal(stream, result.
FileStream
);
Microsoft.AspNetCore.Mvc.RazorPages.Test (4)
PageModelTest.cs (2)
1461
Assert.Same(fileStream, result.
FileStream
);
1487
Assert.Same(fileStream, result.
FileStream
);
PageTest.cs (2)
1451
Assert.Same(fileStream, result.
FileStream
);
1477
Assert.Same(fileStream, result.
FileStream
);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ControllerUnitTestabilityTests.cs (2)
176
Assert.Null(fileStreamResult.
FileStream
);
180
using (var stream = new StreamReader(fileStreamResult.
FileStream
, Encoding.UTF8))