Share via


AspireKafkaConsumerExtensions Class

Definition

Extension methods for connecting to a Kafka broker.

public static class AspireKafkaConsumerExtensions
type AspireKafkaConsumerExtensions = class
Public Module AspireKafkaConsumerExtensions
Inheritance
AspireKafkaConsumerExtensions

Methods

AddKafkaConsumer<TKey,TValue>(IHostApplicationBuilder, String, Action<KafkaConsumerSettings>, Action<ConsumerBuilder<TKey,TValue>>)

Registers Confluent.Kafka.IConsumer`2 as a singleton in the services provided by the builder.

AddKeyedKafkaConsumer<TKey,TValue>(IHostApplicationBuilder, String, Action<KafkaConsumerSettings>, Action<ConsumerBuilder<TKey,TValue>>)

Registers Confluent.Kafka.IConsumer`2 as a keyed singleton for the given name in the services provided by the builder.

Applies to