Path: redb-route/redb.Route.Sqs/SqsHeaderFilterStrategy.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.Sqs/SqsHeaderFilterStrategy.cs ---- using redb.Route.Abstractions; namespace redb.Route.Sqs; /// /// The default of the SQS 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 redbSqs.* / redbSns.* and null values /// as a message attribute of the same name; a consumer brings every message attribute in. The strategy is asked with /// the attribute's own name, on the way in as well, although the consumer stores it under /// redbSqs.attr.<name>. /// /// /// Whatever the strategy: a redbSqs.attr.<name> header is an explicit request and goes out as attribute /// <name>; the other redbSqs.* / redbSns.* headers never go out; the consumer's /// redbSqs.* metadata is set by the consumer; trace context is written by the telemetry layer. /// /// public class SqsHeaderFilterStrategy : IHeaderFilterStrategy { /// The default strategy of an SQS endpoint. public static SqsHeaderFilterStrategy Default { get; } = new(); /// public virtual bool FilterOutgoing(string name, object? value, IExchange exchange) => value is null || SqsHeaders.IsSqsHeader(name) || SnsHeaders.IsSnsHeader(name); /// public virtual bool FilterIncoming(string name, object? value, IExchange exchange) => false; }