1 instantiation of KafkaProducerSettings
Aspire.Confluent.Kafka (1)
AspireKafkaProducerExtensions.cs (1)
215
KafkaProducerSettings settings =
new
();
34 references to KafkaProducerSettings
Aspire.Confluent.Kafka (27)
AspireKafkaProducerExtensions.cs (27)
23
/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
27
/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
28
public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<
KafkaProducerSettings
>? configureSettings)
31
/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
35
/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
39
/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
40
public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<
KafkaProducerSettings
>? configureSettings, Action<ProducerBuilder<TKey, TValue>>? configureBuilder)
48
/// <param name="configureSettings">An optional method used for customizing the <see cref="
KafkaProducerSettings
"/>.</param>
51
public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<
KafkaProducerSettings
>? configureSettings, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder)
54
/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
61
/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
62
public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<
KafkaProducerSettings
>? configureSettings)
68
/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
75
/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
82
/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{
KafkaProducerSettings
}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
83
public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<
KafkaProducerSettings
>? configureSettings, Action<ProducerBuilder<TKey, TValue>>? configureBuilder)
94
/// <param name="configureSettings">An optional method used for customizing the <see cref="
KafkaProducerSettings
"/>.</param>
97
public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<
KafkaProducerSettings
>? configureSettings, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder)
105
Action<
KafkaProducerSettings
>? configureSettings,
112
var
settings = BuildProducerSettings(builder, configureSettings, connectionName);
161
private static ProducerConnectionFactory<TKey, TValue> CreateProducerConnectionFactory<TKey, TValue>(IServiceProvider serviceProvider, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder,
KafkaProducerSettings
settings)
164
private static ProducerBuilder<TKey, TValue> CreateProducerBuilder<TKey, TValue>(IServiceProvider serviceProvider, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder,
KafkaProducerSettings
settings)
211
private static
KafkaProducerSettings
BuildProducerSettings(IHostApplicationBuilder builder, Action<
KafkaProducerSettings
>? configureSettings, string connectionName)
215
KafkaProducerSettings
settings = new();
220
configSection.GetSection(nameof(
KafkaProducerSettings
.Config)).Bind(settings.Config);
221
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)