Path: redb-route/redb.Route.AzureServiceBus/AzureServiceBusHeaders.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.AzureServiceBus/AzureServiceBusHeaders.cs ---- namespace redb.Route.AzureServiceBus; /// /// Header constants for Azure Service Bus connector. Prefix: redbAsb. /// Maps to ServiceBusMessage / ServiceBusReceivedMessage properties. /// public static class AzureServiceBusHeaders { /// Header prefix for all Azure Service Bus headers. public const string Prefix = "redbAsb."; // ── Message identity ── /// Unique message identifier. public const string MessageId = "redbAsb.MessageId"; /// Correlation identifier for request-reply. public const string CorrelationId = "redbAsb.CorrelationId"; /// Session identifier (FIFO ordering key). public const string SessionId = "redbAsb.SessionId"; /// Partition key for batching within a partition. public const string PartitionKey = "redbAsb.PartitionKey"; /// Reply-to session identifier for RPC over sessions. public const string ReplyToSessionId = "redbAsb.ReplyToSessionId"; // ── Message metadata ── /// Message subject (label). public const string Subject = "redbAsb.Subject"; /// Content type of the message body. public const string ContentType = "redbAsb.ContentType"; /// Reply-to address for RPC. public const string ReplyTo = "redbAsb.ReplyTo"; /// Destination address (informational). public const string To = "redbAsb.To"; /// Message time-to-live as TimeSpan string. public const string TimeToLive = "redbAsb.TimeToLive"; // ── Scheduling ── /// Scheduled enqueue time (DateTimeOffset). public const string ScheduledEnqueueTime = "redbAsb.ScheduledEnqueueTime"; /// Sequence number assigned by the broker. public const string SequenceNumber = "redbAsb.SequenceNumber"; // ── Consumer-only (received message metadata) ── /// Number of delivery attempts. public const string DeliveryCount = "redbAsb.DeliveryCount"; /// Time the message was enqueued (DateTimeOffset). public const string EnqueuedTime = "redbAsb.EnqueuedTime"; /// Time the message expires (DateTimeOffset). public const string ExpiresAt = "redbAsb.ExpiresAt"; /// Time the lock expires (DateTimeOffset, PeekLock only). public const string LockedUntil = "redbAsb.LockedUntil"; /// Lock token string (PeekLock only). public const string LockToken = "redbAsb.LockToken"; // ── Dead-letter ── /// Original entity that dead-lettered the message. public const string DeadLetterSource = "redbAsb.DeadLetterSource"; /// Reason the message was dead-lettered. public const string DeadLetterReason = "redbAsb.DeadLetterReason"; /// Error description when dead-lettered. public const string DeadLetterErrorDescription = "redbAsb.DeadLetterErrorDescription"; // ── Session state ── /// Session state (BinaryData serialized). public const string SessionState = "redbAsb.SessionState"; // ── Batch producer ── /// Number of messages in a sent batch. public const string BatchMessageCount = "redbAsb.BatchMessageCount"; /// Checks if a header key belongs to the Azure Service Bus connector. public static bool IsAsbHeader(string key) => key.StartsWith(Prefix, StringComparison.Ordinal); }