Skip to main content
Version: 3.x

BatchProduceItem constructor (1 of 2)

Initializes a new instance of the BatchProduceItem class.

public BatchProduceItem(string topic, object messageKey, object messageValue, 
IMessageHeaders headers)
parameterdescription
topicThe destination topic
messageKeyThe message partition key
messageValueThe message content
headersThe message headers

See Also


BatchProduceItem constructor (2 of 2)

Initializes a new instance of the BatchProduceItem class.

public BatchProduceItem(string topic, object messageKey, object messageValue, 
IMessageHeaders headers, int partition)
parameterdescription
topicThe destination topic
messageKeyThe message partition key
messageValueThe message content
headersThe message headers
partitionThe partition to produce the message to

See Also