Skip to content
DocsTry Aspire
DocsTry

addKafka

Method
📦 Aspire.Hosting.Kafka v13.4.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addKafka(
name: string,
port?: number): KafkaServerResource;
}

Signature

methodaddKafkabuilder
Adds a Kafka resource to the application. A container is used for local development.
addKafka(
name: string,
port?: number): KafkaServerResource
namestring
portnumberoptional
KafkaServerResource

Applies to

This method applies to the following types: