NServiceBus by Particular Software

<PackageReference Include="NServiceBus" Version="8.0.0" />

 MessageMetadataRegistry

Cache of message metadata.
public MessageMetadataRegistry(Func<Type, bool> isMessageType, bool allowDynamicTypeLoading)

Create a new MessageMetadataRegistry instance.

Retrieves all known messages MessageMetadata.

Retrieves the MessageMetadata for the specified type.

public MessageMetadata GetMessageMetadata(string messageTypeIdentifier)

Retrieves the MessageMetadata for the message identifier.