Class MetadataVersioningExtensions
Extension methods for accessing versioning metadata from Properties.
public static class MetadataVersioningExtensions
- Inheritance
-
MetadataVersioningExtensions
- Inherited Members
Methods
GetContentEncoding(IMessageMetadata)
Gets the encoding of the message content.
public static string? GetContentEncoding(this IMessageMetadata metadata)
Parameters
metadataIMessageMetadataThe message metadata.
Returns
- string
The content encoding (e.g., "utf-8"), or null if not set.
GetContractVersion(IMessageMetadata)
Gets the overall API contract version this message adheres to.
public static string GetContractVersion(this IMessageMetadata metadata)
Parameters
metadataIMessageMetadataThe message metadata.
Returns
- string
The contract version, or "1.0.0" if not set.
GetMessageVersion(IMessageMetadata)
Gets the schema version of the message payload structure.
public static string GetMessageVersion(this IMessageMetadata metadata)
Parameters
metadataIMessageMetadataThe message metadata.
Returns
- string
The message version, or "1.0" if not set.
GetSerializerVersion(IMessageMetadata)
Gets the version of the serializer used to encode the message.
public static string GetSerializerVersion(this IMessageMetadata metadata)
Parameters
metadataIMessageMetadataThe message metadata.
Returns
- string
The serializer version, or "1.0" if not set.