VirtualFileResultExecutor 类

定义

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

构造函数

VirtualFileResultExecutor(ILoggerFactory, IHostingEnvironment)

VirtualFileResultIActionResultExecutor<TResult>

VirtualFileResultExecutor(ILoggerFactory, IWebHostEnvironment)

初始化 VirtualFileResultExecutor 的新实例。

字段

BufferSize

缓冲区大小:64 * 1024。

(继承自 FileResultExecutorBase)

属性

Logger

要使用的记录器。

(继承自 FileResultExecutorBase)

方法

ExecuteAsync(ActionContext, VirtualFileResult)

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

GetFileStream(IFileInfo)
已过时.

已过时,不再调用此 API。

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

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

(继承自 FileResultExecutorBase)
WriteFileAsync(ActionContext, VirtualFileResult, IFileInfo, RangeItemHeaderValue, Int64)

VirtualFileResultIActionResultExecutor<TResult>

适用于