Share via


FileResultExecutorBase Class

Definition

Base class for executing a file result.

public ref class FileResultExecutorBase
public class FileResultExecutorBase
type FileResultExecutorBase = class
Public Class FileResultExecutorBase
Inheritance
FileResultExecutorBase
Derived

Constructors

FileResultExecutorBase(ILogger)

Intializes a new FileResultExecutorBase.

Fields

BufferSize

The buffer size: 64 * 1024.

Properties

Logger

The logger to use.

Methods

CreateLogger<T>(ILoggerFactory)

Creates a logger using the factory.

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

Sets etag and last modified headers.

WriteFileAsync(HttpContext, Stream, RangeItemHeaderValue, Int64)

Write the contents of the fileStream to the response body.

Applies to