Interface IDataFormatRegistry
Registry of content-type → serializer mappings.
Used by -based processors to auto-select
the appropriate serializer based on the exchange's ContentType.
Two lookup dimensions are supported:
Media type — resolves by MIME string
(application/json, application/scim+json). Used for wire-format
interop; honors RFC 6838 structured-suffix fallbacks (+json/+xml).Profile name — resolves by a caller-chosen alias
(e.g. "scim", "problem"). Used by application code that wants a
named preset independent of the wire media type.
public interface IDataFormatRegistry
Methods
GetSerializer(string)
Finds a serializer for the given content type (e.g. "application/json").
IMessageSerializer? GetSerializer(string contentType)
Register(string, IMessageSerializer)
Registers a serializer for the given content type.
void Register(string contentType, IMessageSerializer serializer)
RegisterProfile(string, IMessageSerializer)
Registers a serializer under a named profile alias.
void RegisterProfile(string profileName, IMessageSerializer serializer)
ResolveProfile(string)
Resolves a serializer registered under a named profile (e.g. "scim",
IMessageSerializer? ResolveProfile(string profileName)