Dela via


FileStreamResultExecutor Class

Definition

An IActionResultExecutor<TResult> for a file stream result.

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)
Inheritance
FileStreamResultExecutor
Implements

Constructors

FileStreamResultExecutor(ILoggerFactory)

Initializes a new FileStreamResultExecutor.

Fields

BufferSize

The buffer size: 64 * 1024.

(Inherited from FileResultExecutorBase)

Properties

Logger

The logger to use.

(Inherited from FileResultExecutorBase)

Methods

ExecuteAsync(ActionContext, FileStreamResult)

Asynchronously executes the action result, by modifying the HttpResponse.

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

Sets etag and last modified headers.

(Inherited from FileResultExecutorBase)
WriteFileAsync(ActionContext, FileStreamResult, RangeItemHeaderValue, Int64)

Write the contents of the FileStreamResult to the response body.

Applies to