Path: redb-route/redb.Route.RabbitMQ/RmqHeaders.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.RabbitMQ/RmqHeaders.cs ---- namespace redb.Route.RabbitMQ; /// /// Well-known header constants used by the RabbitMQ component. /// public static class RmqHeaders { /// Common prefix for redb-specific RabbitMQ envelope headers (delivery metadata). public const string Prefix = "redbRmq."; // ── Envelope / delivery metadata (no standard AMQP name → redb-prefixed) ───── /// Exchange the message was published to. public const string Exchange = "redbRmq.Exchange"; /// Routing key of the message. public const string RoutingKey = "redbRmq.RoutingKey"; /// Delivery tag for acknowledgement. public const string DeliveryTag = "redbRmq.DeliveryTag"; /// Whether this message was redelivered. public const string Redelivered = "redbRmq.Redelivered"; /// Consumer tag that received the message. public const string ConsumerTag = "redbRmq.ConsumerTag"; // ── Standard AMQP basic properties (well-known names → BARE, self-documenting) ── // These map 1:1 to RabbitMQ BasicProperties. Bare names mean no docs needed and a // consume→produce round-trip carries them through. Caveat: common-word names // (Type/Priority/Timestamp/MessageId) can collide with a business header of the // same name — set a prefixed header instead if that matters. /// AMQP content type (BasicProperties.ContentType). public const string ContentType = "ContentType"; /// Correlation ID (BasicProperties.CorrelationId). public const string CorrelationId = "CorrelationId"; /// Reply-to address (BasicProperties.ReplyTo). public const string ReplyTo = "ReplyTo"; /// Message ID (BasicProperties.MessageId). public const string MessageId = "MessageId"; /// Message priority 0-9 (BasicProperties.Priority). public const string Priority = "Priority"; /// Per-message expiration / TTL in milliseconds, as a string (BasicProperties.Expiration). public const string Expiration = "Expiration"; /// Application message type name (BasicProperties.Type). public const string Type = "Type"; /// Creating application id (BasicProperties.AppId). public const string AppId = "AppId"; /// Creating user id (BasicProperties.UserId). public const string UserId = "UserId"; /// Content encoding (BasicProperties.ContentEncoding). public const string ContentEncoding = "ContentEncoding"; /// Message timestamp, Unix seconds (BasicProperties.Timestamp). public const string Timestamp = "Timestamp"; /// Returns true if the header key belongs to the RabbitMQ component. public static bool IsRedbHeader(string key) => key.StartsWith(Prefix, StringComparison.OrdinalIgnoreCase); }