Interface IKafkaMappingContext
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
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
Methods
SetHeader(string, string)
Sets a custom header on the message.
void SetHeader(string key, string value)