Path: redb-route/redb.Route.File/FileHeaders.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.File/FileHeaders.cs
----
namespace redb.Route.File;
///
/// Constants for exchange headers and properties set by the file component.
/// All prefixed with "redbFile." to avoid collisions.
///
public static class FileHeaders
{
/// Common prefix for all File component headers.
public const string Prefix = "redbFile.";
// ── Headers set on the In message by the consumer ────────────────
/// Full file name with extension (e.g. "order.csv").
public const string FileName = "redbFile.Name";
/// File name without the extension (e.g. "order").
public const string FileNameOnly = "redbFile.NameOnly";
/// File extension including the dot (e.g. ".csv").
public const string FileExtension = "redbFile.Extension";
/// Full absolute path of the file.
public const string FileAbsolutePath = "redbFile.AbsolutePath";
/// Path relative to the polling directory.
public const string FileRelativePath = "redbFile.RelativePath";
/// Parent directory of the file.
public const string FileParent = "redbFile.Parent";
/// File size in bytes.
public const string FileLength = "redbFile.Length";
/// Last modified date/time as DateTimeOffset.
public const string FileLastModified = "redbFile.LastModified";
// ── Headers set by the producer after writing ────────────────────
/// Absolute path of the file that was actually written by the producer.
public const string FileNameProduced = "redbFile.NameProduced";
}