Interface IMessageMapperRegistry
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
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
Returns
Register(IMessageMapper)
Registers a message mapper.
void Register(IMessageMapper mapper)
Parameters
mapperIMessageMapperThe mapper to register.
Exceptions
- ArgumentNullException
Thrown when
mapperis null.