FileStreamResultExecutor 类

定义

IActionResultExecutor<TResult>文件流结果的 。

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

构造函数

FileStreamResultExecutor(ILoggerFactory)

初始化新的 FileStreamResultExecutor

字段

BufferSize

缓冲区大小:64 * 1024。

(继承自 FileResultExecutorBase)

属性

Logger

要使用的记录器。

(继承自 FileResultExecutorBase)

方法

ExecuteAsync(ActionContext, FileStreamResult)

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

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

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

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

将 FileStreamResult 的内容写入响应正文。

适用于