1 instantiation of KafkaProducerSettings
Aspire.Confluent.Kafka (1)
AspireKafkaProducerExtensions.cs (1)
245
KafkaProducerSettings settings =
new
();
34 references to KafkaProducerSettings
Aspire.Confluent.Kafka (27)
AspireKafkaProducerExtensions.cs (27)
25
/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
29
/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
30
public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<
KafkaProducerSettings
>? configureSettings)
33
/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
37
/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
41
/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
42
public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<
KafkaProducerSettings
>? configureSettings, Action<ProducerBuilder<TKey, TValue>>? configureBuilder)
50
/// <param name="configureSettings">An optional method used for customizing the <see cref="
KafkaProducerSettings
"/>.</param>
53
public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<
KafkaProducerSettings
>? configureSettings, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder)
56
/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
63
/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
64
public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<
KafkaProducerSettings
>? configureSettings)
70
/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
77
/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
84
/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
85
public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<
KafkaProducerSettings
>? configureSettings, Action<ProducerBuilder<TKey, TValue>>? configureBuilder)
96
/// <param name="configureSettings">An optional method used for customizing the <see cref="
KafkaProducerSettings
"/>.</param>
99
public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<
KafkaProducerSettings
>? configureSettings, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder)
107
Action<
KafkaProducerSettings
>? configureSettings,
114
var
settings = BuildProducerSettings(builder, configureSettings, connectionName);
186
IServiceProvider serviceProvider,
KafkaProducerSettings
settings, string? key = null)
194
private static InstrumentedProducerBuilder<TKey, TValue> CreateProducerBuilder<TKey, TValue>(IServiceProvider serviceProvider, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder,
KafkaProducerSettings
settings)
241
private static
KafkaProducerSettings
BuildProducerSettings(IHostApplicationBuilder builder, Action<
KafkaProducerSettings
>? configureSettings, string connectionName)
245
KafkaProducerSettings
settings = new();
250
configSection.GetSection(nameof(
KafkaProducerSettings
.Config)).Bind(settings.Config);
251
namedConfigSection.GetSection(nameof(
KafkaProducerSettings
.Config)).Bind(settings.Config);
Aspire.Confluent.Kafka.Tests (7)
ProducerConfigurationTests.cs (2)
54
static void SetConnectionString(
KafkaProducerSettings
settings) => settings.ConnectionString = CommonHelpers.TestingEndpoint;
203
void ConfigureSettings(
KafkaProducerSettings
_)
ProducerConformanceTests.cs (5)
13
public class ProducerConformanceTests : ConformanceTests<IProducer<string, string>,
KafkaProducerSettings
>
34
protected override void RegisterComponent(HostApplicationBuilder builder, Action<
KafkaProducerSettings
>? configure = null, string? key = null)
46
protected override void SetHealthCheck(
KafkaProducerSettings
options, bool enabled) => options.DisableHealthChecks = !enabled;
48
protected override void SetMetrics(
KafkaProducerSettings
options, bool enabled) => options.DisableMetrics = !enabled;
50
protected override void SetTracing(
KafkaProducerSettings
options, bool enabled)