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