Skip to content
DocsTry Aspire
DocsTry

KafkaConsumerSettings Properties

ClassProperties5 members
Provides the client configuration settings for connecting to a Kafka message broker to consume messages.
ConfigSection titled ConfigConsumerConfig
Gets the configuration settings for the Kafka consumer.
public ConsumerConfig Config { get; }
ConnectionStringSection titled ConnectionStringnullablestring?
Gets or sets the connection string of the Kafka server to connect to.
public string? ConnectionString { get; set; }
DisableHealthChecksSection titled DisableHealthChecksbool
Gets or sets a boolean value that indicates whether the Kafka health check is disabled or not.
public bool DisableHealthChecks { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are enabled or not.
public bool DisableMetrics { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
public bool DisableTracing { get; set; }