Table of Contents

Class MetadataBuilderRoutingExtensions

Namespace
Excalibur.Dispatch
Assembly
Excalibur.Dispatch.Abstractions.dll

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

builder IMessageMetadataBuilder

The builder instance.

contentType string

The 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

builder IMessageMetadataBuilder

The builder instance.

destination string

The 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

builder IMessageMetadataBuilder

The builder instance.

groupId string

The 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

builder IMessageMetadataBuilder

The builder instance.

groupSequence long?

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

builder IMessageMetadataBuilder

The builder instance.

messageType string

The 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

builder IMessageMetadataBuilder

The builder instance.

partitionKey string

The 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

builder IMessageMetadataBuilder

The builder instance.

replyTo string

The 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

builder IMessageMetadataBuilder

The builder instance.

routingKey string

The 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

builder IMessageMetadataBuilder

The builder instance.

sessionId string

The 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

builder IMessageMetadataBuilder

The builder instance.

source string

The identifier of the source system.

Returns

IMessageMetadataBuilder

The builder instance for method chaining.