23 references to ReflectionHelpers
Aspire.Confluent.Kafka.Tests (23)
ConsumerConfigurationTests.cs (10)
39
? host.Services.GetRequiredKeyedService(
ReflectionHelpers
.ConsumerConnectionFactoryStringKeyStringValueType.Value, "messaging")
40
: host.Services.GetRequiredService(
ReflectionHelpers
.ConsumerConnectionFactoryStringKeyStringValueType.Value);
72
? host.Services.GetRequiredKeyedService(
ReflectionHelpers
.ConsumerConnectionFactoryStringKeyStringValueType.Value, "messaging")
73
: host.Services.GetRequiredService(
ReflectionHelpers
.ConsumerConnectionFactoryStringKeyStringValueType.Value);
105
? host.Services.GetRequiredKeyedService(
ReflectionHelpers
.ConsumerConnectionFactoryStringKeyStringValueType.Value, "messaging")
106
: host.Services.GetRequiredService(
ReflectionHelpers
.ConsumerConnectionFactoryStringKeyStringValueType.Value);
184
? host.Services.GetRequiredKeyedService(
ReflectionHelpers
.ConsumerConnectionFactoryStringKeyStringValueType.Value, "messaging")
185
: host.Services.GetRequiredService(
ReflectionHelpers
.ConsumerConnectionFactoryStringKeyStringValueType.Value);
253
var connectionFactory = host.Services.GetRequiredService(
ReflectionHelpers
.ConsumerConnectionFactoryStringKeyStringValueType.Value);
265
private static ConsumerConfig? GetConsumerConfig(object o) =>
ReflectionHelpers
.ConsumerConnectionFactoryStringKeyStringValueType.Value.GetProperty("Config")!.GetValue(o) as ConsumerConfig;
MetricsTests.cs (3)
44
object metricsChannel = host.Services.GetRequiredService(
ReflectionHelpers
.MetricsChannelType.Value!);
161
object metricsChannel = host.Services.GetRequiredService(
ReflectionHelpers
.MetricsChannelType.Value!);
250
private static ChannelWriter<string>? GetMetricsChannelWriter(object o) =>
ReflectionHelpers
.MetricsChannelType.Value!.GetProperty("Writer")!.GetValue(o) as ChannelWriter<string>;
ProducerConfigurationTests.cs (10)
36
host.Services.GetRequiredKeyedService(
ReflectionHelpers
.ProducerConnectionFactoryStringKeyStringValueType.Value, "messaging") :
37
host.Services.GetRequiredService(
ReflectionHelpers
.ProducerConnectionFactoryStringKeyStringValueType.Value);
66
host.Services.GetRequiredKeyedService(
ReflectionHelpers
.ProducerConnectionFactoryStringKeyStringValueType.Value, "messaging") :
67
host.Services.GetRequiredService(
ReflectionHelpers
.ProducerConnectionFactoryStringKeyStringValueType.Value);
98
host.Services.GetRequiredKeyedService(
ReflectionHelpers
.ProducerConnectionFactoryStringKeyStringValueType.Value, "messaging") :
99
host.Services.GetRequiredService(
ReflectionHelpers
.ProducerConnectionFactoryStringKeyStringValueType.Value);
174
host.Services.GetRequiredKeyedService(
ReflectionHelpers
.ProducerConnectionFactoryStringKeyStringValueType.Value, "messaging") :
175
host.Services.GetRequiredService(
ReflectionHelpers
.ProducerConnectionFactoryStringKeyStringValueType.Value);
242
var connectionFactory = host.Services.GetRequiredService(
ReflectionHelpers
.ProducerConnectionFactoryStringKeyStringValueType.Value);
253
private static ProducerConfig? GetProducerConfig(object o) =>
ReflectionHelpers
.ProducerConnectionFactoryStringKeyStringValueType.Value.GetProperty("Config")!.GetValue(o) as ProducerConfig;