Path: redb-route/redb.Route.AzureServiceBus/AzureServiceBusHeaderFilterStrategy.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/AzureServiceBusHeaderFilterStrategy.cs ---- using redb.Route.Abstractions; namespace redb.Route.AzureServiceBus; /// /// The default of the Azure Service Bus component. An endpoint's /// headerFilterStrategy=#name replaces it; derive from it to add to it. /// /// A producer sends every exchange header but the component's own redbAsb.* and null values as application /// properties; a consumer (plain and session alike) brings every application property in. Whatever the strategy, the /// producer reads the message's system properties (MessageId, SessionId, Subject...) from the /// redbAsb.* headers, the consumer sets them and the delivery metadata, and trace context is written by the /// telemetry layer. /// /// public class AzureServiceBusHeaderFilterStrategy : IHeaderFilterStrategy { /// The default strategy of an Azure Service Bus endpoint. public static AzureServiceBusHeaderFilterStrategy Default { get; } = new(); /// public virtual bool FilterOutgoing(string name, object? value, IExchange exchange) => value is null || AzureServiceBusHeaders.IsAsbHeader(name); /// public virtual bool FilterIncoming(string name, object? value, IExchange exchange) => false; }