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