Condividi tramite


FileContentResultExecutor Classe

Definizione

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)
Ereditarietà
FileContentResultExecutor
Implementazioni

Costruttori

FileContentResultExecutor(ILoggerFactory)

Inizializza un nuovo FileContentResultExecutoroggetto .

Campi

BufferSize

Dimensioni del buffer: 64 * 1024.

(Ereditato da FileResultExecutorBase)

Proprietà

Logger

Logger da usare.

(Ereditato da FileResultExecutorBase)

Metodi

ExecuteAsync(ActionContext, FileContentResult)

Esegue in modo asincrono il risultato dell'azione modificando .HttpResponse

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

Imposta le intestazioni etag e last modified.

(Ereditato da FileResultExecutorBase)
WriteFileAsync(ActionContext, FileContentResult, RangeItemHeaderValue, Int64)

Scrive il contenuto del file.

Si applica a