FileContentResultExecutor 类

定义

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

构造函数

FileContentResultExecutor(ILoggerFactory)

初始化新的 FileContentResultExecutor

字段

BufferSize

缓冲区大小:64 * 1024。

(继承自 FileResultExecutorBase)

属性

Logger

要使用的记录器。

(继承自 FileResultExecutorBase)

方法

ExecuteAsync(ActionContext, FileContentResult)

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

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

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

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

写入文件内容。

适用于