4 instantiations of PhysicalFileHttpResult
Microsoft.AspNetCore.Http.Results (1)
TypedResults.cs (1)
513
return
new
(path, contentType)
Microsoft.AspNetCore.Http.Results.Tests (3)
PhysicalFileResultTest.cs (3)
19
var fileResult = new
PhysicalFileHttpResult
(path, contentType)
47
var result = Assert.IsAssignableFrom<IFileHttpResult>(new
PhysicalFileHttpResult
("file.zip", contentType) { FileDownloadName = downloadName });
60
var result = Assert.IsAssignableFrom<IContentTypeHttpResult>(new
PhysicalFileHttpResult
("file.zip", contentType) { FileDownloadName = downloadName });
9 references to PhysicalFileHttpResult
Microsoft.AspNetCore.Http.Results (6)
PhysicalFileHttpResult.cs (4)
11
/// A <see cref="
PhysicalFileHttpResult
"/> on execution will write a file from disk to the response
17
/// Creates a new <see cref="
PhysicalFileHttpResult
"/> instance with
28
/// Creates a new <see cref="
PhysicalFileHttpResult
"/> instance with
44
/// Creates a new <see cref="
PhysicalFileHttpResult
"/> instance with the provided values.
TypedResults.cs (2)
502
/// <returns>The created <see cref="
PhysicalFileHttpResult
"/> for the response.</returns>
503
public static
PhysicalFileHttpResult
PhysicalFile(
Microsoft.AspNetCore.Http.Results.Tests (3)
PhysicalFileResultTest.cs (1)
19
var
fileResult = new PhysicalFileHttpResult(path, contentType)
ResultsTests.cs (1)
1754
(() => Results.File(Path.Join(Path.DirectorySeparatorChar.ToString(), "rooted", "path"), null, null, null, null, false), typeof(
PhysicalFileHttpResult
)),
TypedResultsTests.cs (1)
277
var
result = TypedResults.PhysicalFile(path, contentType, fileDownloadName, lastModified, entityTag, enableRangeProcessing);