3 instantiations of FileStreamHttpResult
Microsoft.AspNetCore.Http.Results (3)
TypedResults.cs (3)
372return new(fileStream, contentType) 413return new(stream, contentType) 451return new(pipeReader.AsStream(), contentType)
20 references to FileStreamHttpResult
Microsoft.AspNetCore.Http.Results (9)
FileStreamHttpResult.cs (3)
18/// Creates a new <see cref="FileStreamHttpResult"/> instance with 30/// Creates a new <see cref="FileStreamHttpResult"/> instance with 46/// Creates a new <see cref="FileStreamHttpResult"/> instance with the provided values.
TypedResults.cs (6)
361/// <returns>The created <see cref="FileStreamHttpResult"/> for the response.</returns> 362public static FileStreamHttpResult File( 402/// <returns>The created <see cref="FileStreamHttpResult"/> for the response.</returns> 403public static FileStreamHttpResult Stream( 440/// <returns>The created <see cref="FileStreamHttpResult"/> for the response.</returns> 441public static FileStreamHttpResult Stream(
Microsoft.AspNetCore.Http.Results.Tests (11)
HttpFileStreamResultTests.cs (5)
19var fileStreamResult = new FileStreamHttpResult(stream, contentType) 36var result = new FileStreamHttpResult(stream, "text/plain"); 51var result = new FileStreamHttpResult(stream, contentType); 69var result = new FileStreamHttpResult(stream, contentType) 85var result = new FileStreamHttpResult(new MemoryStream(), null);
ResultsTests.cs (4)
310var fileStreamResult = result as FileStreamHttpResult; 1753(() => Results.File(new MemoryStream(), null, null, null, null, false), typeof(FileStreamHttpResult)), 1766(() => Results.Stream(new MemoryStream(), null, null, null, null, false), typeof(FileStreamHttpResult)),
TypedResultsTests.cs (2)
394var fileStreamResult = result as FileStreamHttpResult;