Show / Hide Table of Contents

    Interface ICustomHeadersMappings

    Can be used to override the default header names.

    Namespace: Silverback.Messaging.Headers
    Assembly: Silverback.Integration.dll
    Syntax
    public interface ICustomHeadersMappings

    Properties

    | Improve this doc View source

    Count

    Gets the number of mappings that have been configured.

    Declaration
    int Count { get; }
    Property Value
    Type Description
    int

    Methods

    | Improve this doc View source

    Add(string, string)

    Adds a new mapping.

    Declaration
    void Add(string defaultHeaderName, string customHeaderName)
    Parameters
    Type Name Description
    string defaultHeaderName

    The default header name.

    string customHeaderName

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

    | Improve this doc View source

    Apply(IEnumerable<MessageHeader>)

    Applies the configured mappings to the specified collection of MessageHeader.

    Declaration
    void Apply(IEnumerable<MessageHeader> headers)
    Parameters
    Type Name Description
    IEnumerable<MessageHeader> headers

    The collection of MessageHeader to be mapped.

    | Improve this doc View source

    Revert(IEnumerable<MessageHeader>)

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

    Declaration
    void Revert(IEnumerable<MessageHeader> headers)
    Parameters
    Type Name Description
    IEnumerable<MessageHeader> headers

    The collection of MessageHeader to be mapped.

    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini