1 instantiation of PhysicalFileHttpResult
Microsoft.AspNetCore.Http.Results (1)
TypedResults.cs (1)
512
return
new
(path, contentType)
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)
501
/// <returns>The created <see cref="
PhysicalFileHttpResult
"/> for the response.</returns>
502
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);