PhysicalFileResultExecutor 类

定义

public ref class PhysicalFileResultExecutor : Microsoft::AspNetCore::Mvc::Infrastructure::FileResultExecutorBase, Microsoft::AspNetCore::Mvc::Infrastructure::IActionResultExecutor<Microsoft::AspNetCore::Mvc::PhysicalFileResult ^>
public class PhysicalFileResultExecutor : Microsoft.AspNetCore.Mvc.Infrastructure.FileResultExecutorBase, Microsoft.AspNetCore.Mvc.Infrastructure.IActionResultExecutor<Microsoft.AspNetCore.Mvc.PhysicalFileResult>
type PhysicalFileResultExecutor = class
    inherit FileResultExecutorBase
    interface IActionResultExecutor<PhysicalFileResult>
Public Class PhysicalFileResultExecutor
Inherits FileResultExecutorBase
Implements IActionResultExecutor(Of PhysicalFileResult)
继承
PhysicalFileResultExecutor
实现

构造函数

PhysicalFileResultExecutor(ILoggerFactory)

初始化 PhysicalFileResultExecutor 的新实例。

字段

BufferSize

缓冲区大小:64 * 1024。

(继承自 FileResultExecutorBase)

属性

Logger

要使用的记录器。

(继承自 FileResultExecutorBase)

方法

ExecuteAsync(ActionContext, PhysicalFileResult)

通过修改 HttpResponse异步执行操作结果。

GetFileInfo(String)

获取路径的文件元数据。

GetFileStream(String)
已过时.

已过时。 不再调用此 API。

SetHeadersAndLog(ActionContext, FileResult, Nullable<Int64>, Boolean, Nullable<DateTimeOffset>, EntityTagHeaderValue)

设置 etag 和上次修改的标头。

(继承自 FileResultExecutorBase)
WriteFileAsync(ActionContext, PhysicalFileResult, RangeItemHeaderValue, Int64)

PhysicalFileResultIActionResultExecutor<TResult>

适用于