Class AzureServiceBusHeaderFilterStrategy

Assembly: redb.Route.AzureServiceBus.dll

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

Inheritance

Object→AzureServiceBusHeaderFilterStrategy

Implements

Properties

Default

The default strategy of an Azure Service Bus endpoint.

public static AzureServiceBusHeaderFilterStrategy Default { get; }

Methods

FilterIncoming(string, object?, IExchange)

Whether the header name of an incoming message (a consumed message, a producer's reply) is

public virtual bool FilterIncoming(string name, object? value, IExchange exchange)

FilterOutgoing(string, object?, IExchange)

Whether the exchange header name is dropped instead of going into an outgoing message

public virtual bool FilterOutgoing(string name, object? value, IExchange exchange)