4 references to TryAddKeyedSingleton
Aspire.Confluent.Kafka (2)
AspireKafkaConsumerExtensions.cs (1)
139
builder.Services.
TryAddKeyedSingleton
<KafkaHealthCheck>(healthCheckName,
AspireKafkaProducerExtensions.cs (1)
139
builder.Services.
TryAddKeyedSingleton
<KafkaHealthCheck>(healthCheckName,
Aspire.NATS.Net (2)
AspireNatsClientExtensions.cs (2)
107
builder.Services.
TryAddKeyedSingleton
<NatsConnection>(serviceKey, (provider, _) => Factory(provider));
108
builder.Services.
TryAddKeyedSingleton
<INatsConnection>(serviceKey, static (provider, key) => provider.GetRequiredKeyedService<NatsConnection>(key));