Struct MessageIdentity
Focused value type grouping the supplemental identity and versioning metadata for a message.
public readonly record struct MessageIdentity : IEquatable<MessageIdentity>
- Implements
- Inherited Members
- Extension Methods
Remarks
Composed onto MessageMetadata alongside the core dispatch identity fields (MessageId, CorrelationId, CausationId) which remain on the root for the IMessageMetadata contract. This group carries the optional external identifier and the message format/contract versioning fields. Holds at most ten properties to satisfy the Microsoft-first focused-value-type design guideline.
Properties
ContentEncoding
Gets the encoding used for the message content.
public string? ContentEncoding { get; init; }
Property Value
ContractVersion
Gets the version of the message contract.
public string? ContractVersion { get; init; }
Property Value
- string
The contract version.
ExternalId
Gets an external system identifier for the message.
public string? ExternalId { get; init; }
Property Value
MessageVersion
Gets the version of the message format.
public string? MessageVersion { get; init; }
Property Value
- string
The message format version.
SerializerVersion
Gets the version of the serializer used for the message.
public string? SerializerVersion { get; init; }
Property Value
- string
The serializer version.