Class MetadataRoutingExtensions
Extension methods for accessing routing metadata from Properties.
public static class MetadataRoutingExtensions
- Inheritance
-
MetadataRoutingExtensions
- Inherited Members
Methods
GetDestination(IMessageMetadata)
Gets the intended destination for this message.
public static string? GetDestination(this IMessageMetadata metadata)
Parameters
metadataIMessageMetadataThe message metadata.
Returns
- string
The destination, or null if not set.
GetGroupId(IMessageMetadata)
Gets the group identifier for message grouping.
public static string? GetGroupId(this IMessageMetadata metadata)
Parameters
metadataIMessageMetadataThe message metadata.
Returns
- string
The group identifier, or null if not set.
GetGroupSequence(IMessageMetadata)
Gets the sequence number within a group or session.
public static long? GetGroupSequence(this IMessageMetadata metadata)
Parameters
metadataIMessageMetadataThe message metadata.
Returns
- long?
The group sequence number, or null if not set.
GetPartitionKey(IMessageMetadata)
Gets the partition key for message ordering and distribution.
public static string? GetPartitionKey(this IMessageMetadata metadata)
Parameters
metadataIMessageMetadataThe message metadata.
Returns
- string
The partition key, or null if not set.
GetReplyTo(IMessageMetadata)
Gets the address where responses to this message should be sent.
public static string? GetReplyTo(this IMessageMetadata metadata)
Parameters
metadataIMessageMetadataThe message metadata.
Returns
- string
The reply-to address, or null if not set.
GetRoutingKey(IMessageMetadata)
Gets the routing key for topic-based routing.
public static string? GetRoutingKey(this IMessageMetadata metadata)
Parameters
metadataIMessageMetadataThe message metadata.
Returns
- string
The routing key, or null if not set.
GetSessionId(IMessageMetadata)
Gets the session identifier for ordered message processing.
public static string? GetSessionId(this IMessageMetadata metadata)
Parameters
metadataIMessageMetadataThe message metadata.
Returns
- string
The session identifier, or null if not set.