9 instantiations of PhysicalFileResult
Microsoft.AspNetCore.Mvc.Core (6)
ControllerBase.cs (6)
1591
=> new
PhysicalFileResult
(physicalPath, contentType) { FileDownloadName = fileDownloadName };
1611
=> new
PhysicalFileResult
(physicalPath, contentType)
1631
return new
PhysicalFileResult
(physicalPath, contentType)
1653
return new
PhysicalFileResult
(physicalPath, contentType)
1676
return new
PhysicalFileResult
(physicalPath, contentType)
1700
return new
PhysicalFileResult
(physicalPath, contentType)
Microsoft.AspNetCore.Mvc.Core.Test (1)
PhysicalFileResultTest.cs (1)
24
var fileResult = new
PhysicalFileResult
(path, contentType)
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
403
=> new
PhysicalFileResult
(physicalPath, contentType) { FileDownloadName = fileDownloadName };
PageModel.cs (1)
809
=> new
PhysicalFileResult
(physicalPath, contentType) { FileDownloadName = fileDownloadName };
35 references to PhysicalFileResult
Microsoft.AspNetCore.Mvc.Core (25)
ControllerBase.cs (16)
1556
/// <returns>The created <see cref="
PhysicalFileResult
"/> for the response.</returns>
1558
public virtual
PhysicalFileResult
PhysicalFile(string physicalPath, string contentType)
1570
/// <returns>The created <see cref="
PhysicalFileResult
"/> for the response.</returns>
1572
public virtual
PhysicalFileResult
PhysicalFile(string physicalPath, string contentType, bool enableRangeProcessing)
1585
/// <returns>The created <see cref="
PhysicalFileResult
"/> for the response.</returns>
1587
public virtual
PhysicalFileResult
PhysicalFile(
1604
/// <returns>The created <see cref="
PhysicalFileResult
"/> for the response.</returns>
1606
public virtual
PhysicalFileResult
PhysicalFile(
1627
/// <returns>The created <see cref="
PhysicalFileResult
"/> for the response.</returns>
1629
public virtual
PhysicalFileResult
PhysicalFile(string physicalPath, string contentType, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag)
1649
/// <returns>The created <see cref="
PhysicalFileResult
"/> for the response.</returns>
1651
public virtual
PhysicalFileResult
PhysicalFile(string physicalPath, string contentType, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag, bool enableRangeProcessing)
1672
/// <returns>The created <see cref="
PhysicalFileResult
"/> for the response.</returns>
1674
public virtual
PhysicalFileResult
PhysicalFile(string physicalPath, string contentType, string? fileDownloadName, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag)
1696
/// <returns>The created <see cref="
PhysicalFileResult
"/> for the response.</returns>
1698
public virtual
PhysicalFileResult
PhysicalFile(string physicalPath, string contentType, string? fileDownloadName, DateTimeOffset? lastModified, EntityTagHeaderValue entityTag, bool enableRangeProcessing)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
236
services.TryAddSingleton<IActionResultExecutor<
PhysicalFileResult
>, PhysicalFileResultExecutor>();
Infrastructure\PhysicalFileResultExecutor.cs (5)
12
/// A <see cref="IActionResultExecutor{PhysicalFileResult}"/> for <see cref="
PhysicalFileResult
"/>.
14
public partial class PhysicalFileResultExecutor : FileResultExecutorBase, IActionResultExecutor<
PhysicalFileResult
>
26
public virtual Task ExecuteAsync(ActionContext context,
PhysicalFileResult
result)
58
protected virtual Task WriteFileAsync(ActionContext context,
PhysicalFileResult
result, RangeItemHeaderValue? range, long rangeLength)
65
PhysicalFileResult
result,
PhysicalFileResult.cs (3)
20
/// Creates a new <see cref="
PhysicalFileResult
"/> instance with
32
/// Creates a new <see cref="
PhysicalFileResult
"/> instance with
58
var executor = context.HttpContext.RequestServices.GetRequiredService<IActionResultExecutor<
PhysicalFileResult
>>();
Microsoft.AspNetCore.Mvc.Core.Test (2)
PhysicalFileResultTest.cs (2)
24
var
fileResult = new PhysicalFileResult(path, contentType)
59
services.AddSingleton<IActionResultExecutor<
PhysicalFileResult
>, TestPhysicalFileResultExecutor>();
Microsoft.AspNetCore.Mvc.RazorPages (8)
PageBase.cs (4)
386
/// <returns>The created <see cref="
PhysicalFileResult
"/> for the response.</returns>
387
public virtual
PhysicalFileResult
PhysicalFile(string physicalPath, string contentType)
398
/// <returns>The created <see cref="
PhysicalFileResult
"/> for the response.</returns>
399
public virtual
PhysicalFileResult
PhysicalFile(
PageModel.cs (4)
792
/// <returns>The created <see cref="
PhysicalFileResult
"/> for the response.</returns>
793
public virtual
PhysicalFileResult
PhysicalFile(string physicalPath, string contentType)
804
/// <returns>The created <see cref="
PhysicalFileResult
"/> for the response.</returns>
805
public virtual
PhysicalFileResult
PhysicalFile(