1 instantiation of KafkaConsumerSettings
Aspire.Confluent.Kafka (1)
AspireKafkaConsumerExtensions.cs (1)
215
KafkaConsumerSettings settings =
new
();
34 references to KafkaConsumerSettings
Aspire.Confluent.Kafka (27)
AspireKafkaConsumerExtensions.cs (27)
23
/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{
KafkaConsumerSettings
}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
27
/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{
KafkaConsumerSettings
}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
28
public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<
KafkaConsumerSettings
>? configureSettings)
31
/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{
KafkaConsumerSettings
}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
35
/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{
KafkaConsumerSettings
}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
39
/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{
KafkaConsumerSettings
}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
40
public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<
KafkaConsumerSettings
>? configureSettings, Action<ConsumerBuilder<TKey, TValue>>? configureBuilder)
48
/// <param name="configureSettings">An optional method for customizing the <see cref="
KafkaConsumerSettings
"/>.</param>
51
public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<
KafkaConsumerSettings
>? configureSettings, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder)
54
/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaConsumerSettings
}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
61
/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaConsumerSettings
}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
62
public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<
KafkaConsumerSettings
>? configureSettings)
68
/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaConsumerSettings
}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
75
/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaConsumerSettings
}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
82
/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaConsumerSettings
}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
83
public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<
KafkaConsumerSettings
>? configureSettings, Action<ConsumerBuilder<TKey, TValue>>? configureBuilder)
94
/// <param name="configureSettings">An optional method for customizing the <see cref="
KafkaConsumerSettings
"/>.</param>
97
public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<
KafkaConsumerSettings
>? configureSettings, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder)
105
Action<
KafkaConsumerSettings
>? configureSettings,
112
var
settings = BuildConsumerSettings(builder, configureSettings, connectionName);
161
private static ConsumerConnectionFactory<TKey, TValue> CreateConsumerConnectionFactory<TKey, TValue>(IServiceProvider serviceProvider, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder,
KafkaConsumerSettings
settings)
164
private static ConsumerBuilder<TKey, TValue> CreateConsumerBuilder<TKey, TValue>(IServiceProvider serviceProvider, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder,
KafkaConsumerSettings
settings)
211
private static
KafkaConsumerSettings
BuildConsumerSettings(IHostApplicationBuilder builder, Action<
KafkaConsumerSettings
>? configureSettings, string connectionName)
215
KafkaConsumerSettings
settings = new();
220
configSection.GetSection(nameof(
KafkaConsumerSettings
.Config)).Bind(settings.Config);
221
namedConfigSection.GetSection(nameof(
KafkaConsumerSettings
.Config)).Bind(settings.Config);
Aspire.Confluent.Kafka.Tests (7)
ConsumerConfigurationTests.cs (2)
60
static void SetConnectionString(
KafkaConsumerSettings
settings) => settings.ConnectionString = CommonHelpers.TestingEndpoint;
213
void ConfigureSettings(
KafkaConsumerSettings
_)
ConsumerConformanceTests.cs (5)
12
public class ConsumerConformanceTests : ConformanceTests<IConsumer<string, string>,
KafkaConsumerSettings
>
35
protected override void RegisterComponent(HostApplicationBuilder builder, Action<
KafkaConsumerSettings
>? configure = null, string? key = null)
47
protected override void SetHealthCheck(
KafkaConsumerSettings
options, bool enabled) => options.DisableHealthChecks = !enabled;
49
protected override void SetMetrics(
KafkaConsumerSettings
options, bool enabled) => options.DisableMetrics = !enabled;
51
protected override void SetTracing(
KafkaConsumerSettings
options, bool enabled)