Class MetadataBuilderRoutingExtensions
Extension methods for setting routing properties on IMessageMetadataBuilder.
public static class MetadataBuilderRoutingExtensions
- Inheritance
-
MetadataBuilderRoutingExtensions
- Inherited Members
Methods
WithContentType(IMessageMetadataBuilder, string)
Sets the content type of the message payload.
public static IMessageMetadataBuilder WithContentType(this IMessageMetadataBuilder builder, string contentType)
Parameters
builderIMessageMetadataBuilderThe builder instance.
contentTypestringThe MIME type or content type identifier.
Returns
- IMessageMetadataBuilder
The builder instance for method chaining.
WithDestination(IMessageMetadataBuilder, string?)
Sets the destination system or component for the message.
public static IMessageMetadataBuilder WithDestination(this IMessageMetadataBuilder builder, string? destination)
Parameters
builderIMessageMetadataBuilderThe builder instance.
destinationstringThe identifier of the destination system.
Returns
- IMessageMetadataBuilder
The builder instance for method chaining.
WithGroupId(IMessageMetadataBuilder, string?)
Sets the group identifier for message grouping.
public static IMessageMetadataBuilder WithGroupId(this IMessageMetadataBuilder builder, string? groupId)
Parameters
builderIMessageMetadataBuilderThe builder instance.
groupIdstringThe identifier for the message group.
Returns
- IMessageMetadataBuilder
The builder instance for method chaining.
WithGroupSequence(IMessageMetadataBuilder, long?)
Sets the sequence number within the message group.
public static IMessageMetadataBuilder WithGroupSequence(this IMessageMetadataBuilder builder, long? groupSequence)
Parameters
builderIMessageMetadataBuilderThe builder instance.
groupSequencelong?The sequence number within the group.
Returns
- IMessageMetadataBuilder
The builder instance for method chaining.
WithMessageType(IMessageMetadataBuilder, string)
Sets the message type identifier.
public static IMessageMetadataBuilder WithMessageType(this IMessageMetadataBuilder builder, string messageType)
Parameters
builderIMessageMetadataBuilderThe builder instance.
messageTypestringThe type identifier for the message.
Returns
- IMessageMetadataBuilder
The builder instance for method chaining.
WithPartitionKey(IMessageMetadataBuilder, string?)
Sets the partition key for message routing and ordering.
public static IMessageMetadataBuilder WithPartitionKey(this IMessageMetadataBuilder builder, string? partitionKey)
Parameters
builderIMessageMetadataBuilderThe builder instance.
partitionKeystringThe partition key value.
Returns
- IMessageMetadataBuilder
The builder instance for method chaining.
WithReplyTo(IMessageMetadataBuilder, string?)
Sets the reply-to address for request-response patterns.
public static IMessageMetadataBuilder WithReplyTo(this IMessageMetadataBuilder builder, string? replyTo)
Parameters
builderIMessageMetadataBuilderThe builder instance.
replyTostringThe reply-to address or identifier.
Returns
- IMessageMetadataBuilder
The builder instance for method chaining.
WithRoutingKey(IMessageMetadataBuilder, string?)
Sets the routing key for message routing.
public static IMessageMetadataBuilder WithRoutingKey(this IMessageMetadataBuilder builder, string? routingKey)
Parameters
builderIMessageMetadataBuilderThe builder instance.
routingKeystringThe key used for message routing decisions.
Returns
- IMessageMetadataBuilder
The builder instance for method chaining.
WithSessionId(IMessageMetadataBuilder, string?)
Sets the session identifier for message grouping.
public static IMessageMetadataBuilder WithSessionId(this IMessageMetadataBuilder builder, string? sessionId)
Parameters
builderIMessageMetadataBuilderThe builder instance.
sessionIdstringThe session identifier.
Returns
- IMessageMetadataBuilder
The builder instance for method chaining.
WithSource(IMessageMetadataBuilder, string?)
Sets the source system or component that originated the message.
public static IMessageMetadataBuilder WithSource(this IMessageMetadataBuilder builder, string? source)
Parameters
builderIMessageMetadataBuilderThe builder instance.
sourcestringThe identifier of the source system.
Returns
- IMessageMetadataBuilder
The builder instance for method chaining.