Table of Contents

Interface ICustomHeadersMappings

Namespace
Silverback.Messaging.Headers
Assembly
Silverback.Integration.dll

Can be used to override the default header names.

public interface ICustomHeadersMappings

Properties

Count

Gets the number of mappings that have been configured.

int Count { get; }

Property Value

int

Methods

Add(string, string)

Adds a new mapping.

void Add(string defaultHeaderName, string customHeaderName)

Parameters

defaultHeaderName string

The default header name.

customHeaderName string

The custom header name to be used instead of the default.

Apply(MessageHeaderCollection)

Applies the configured mappings to the specified collection of MessageHeader.

void Apply(MessageHeaderCollection headers)

Parameters

headers MessageHeaderCollection

The collection of MessageHeader to be mapped.

Revert(MessageHeaderCollection)

Reverts the headers in the specified collection of MessageHeader to the default header names.

void Revert(MessageHeaderCollection headers)

Parameters

headers MessageHeaderCollection

The collection of MessageHeader to be mapped.