Table of Contents

Interface IKafkaMappingContext

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

Kafka-specific mapping context for configuring message properties.

public interface IKafkaMappingContext
Extension Methods

Properties

Key

Gets or sets the message key (used for partitioning).

string? Key { get; set; }

Property Value

string

Partition

Gets or sets the target partition (or null for automatic partitioning).

int? Partition { get; set; }

Property Value

int?

SchemaId

Gets or sets the schema ID for schema registry integration.

int? SchemaId { get; set; }

Property Value

int?

Topic

Gets or sets the topic name.

string? Topic { get; set; }

Property Value

string

Methods

SetHeader(string, string)

Sets a custom header on the message.

void SetHeader(string key, string value)

Parameters

key string

The header key.

value string

The header value.