Method CreateExchangeAsync(GenericFileInfo, string, CancellationToken)

Assembly: redb.Route.File.dll

Creates an exchange with the file body and protocol-specific headers.

protected override Task<Exchange> CreateExchangeAsync(GenericFileInfo file, string workPath, CancellationToken ct)

Remarks

Read failures propagate. A file that cannot be read must not be delivered as an empty
message: the caller treats the exception as a processing failure and leaves the file
in place for the next poll.