Table of Contents

Interface IMessageMapperRegistry

Namespace
Excalibur.Dispatch.Transport
Assembly
Excalibur.Dispatch.Abstractions.dll

Registry for message mappers that enables lookup by transport combination.

public interface IMessageMapperRegistry
Extension Methods

Remarks

The mapper registry maintains a collection of IMessageMapper instances and provides lookup functionality to find the appropriate mapper for a given source/target transport combination.

Methods

GetAllMappers()

Gets all registered mappers.

IEnumerable<IMessageMapper> GetAllMappers()

Returns

IEnumerable<IMessageMapper>

An enumerable of all registered mappers.

GetMapper(string, string)

Gets a mapper for the specified transport combination.

IMessageMapper? GetMapper(string sourceTransport, string targetTransport)

Parameters

sourceTransport string

The source transport name.

targetTransport string

The target transport name.

Returns

IMessageMapper

The registered mapper, or null if no mapper is registered for the specified combination.

HasMapper(string, string)

Determines whether a mapper exists for the specified transport combination.

bool HasMapper(string sourceTransport, string targetTransport)

Parameters

sourceTransport string

The source transport name.

targetTransport string

The target transport name.

Returns

bool

true if a mapper is registered for the combination; otherwise, false.

Register(IMessageMapper)

Registers a message mapper.

void Register(IMessageMapper mapper)

Parameters

mapper IMessageMapper

The mapper to register.

Exceptions

ArgumentNullException

Thrown when mapper is null.