Class FileProducer
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
Implements
Properties
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
FileProducer(FileEndpoint, FileEndpointOptions)
Creates a file producer.