In order to invoke the correct message handlers for incoming messages, NServiceBus must be able to map the incoming transport message to a message type.
The mapping rules are as follows:
If the message contains the
NServiceBus.header, the header value is used to find the message type. The header value must contain at least the FullName of the message type but can also contain the AssemblyQualifiedName. NServiceBus uses the AssemblyQualifiedName when emitting messages.
If the header is missing, serializers can optionally infer the message type based on the message payload.