Class FileProducer

Namespace: redb.Route.File
Assembly: redb.Route.File.dll

File producer. Inherits the complete write flow from
(temp file, atomic rename, file-exist strategies).
Adds content-type inference for the produced file.

public class FileProducer : GenericFileProducer<FileEndpointOptions>, IProducer, IProcessor

Inheritance

Object→FileEndpointOptions}→FileProducer

Implements

Properties

BasePath

Base directory path for this producer.

protected override string BasePath { get; }

FileNameProducedHeader

Header name for the produced file path (e.g. "redbFile.NameProduced").

protected override string FileNameProducedHeader { get; }

Methods

ResolveTargetPath(IExchange)

Resolves the target file path from the FileName option or exchange headers.

protected override string ResolveTargetPath(IExchange exchange)

ValidatePath(string)

Validates the target path before writing. Override for jail-directory checks.

protected override void ValidatePath(string targetPath)

Constructors