25 references to AddKeyedSingleton
Aspire.Azure.AI.OpenAI (1)
Aspire.Azure.Data.Tables (1)
Aspire.Azure.Messaging.EventHubs (1)
Aspire.Azure.Messaging.ServiceBus (1)
Aspire.Azure.Messaging.WebPubSub (1)
Aspire.Azure.Search.Documents (1)
Aspire.Azure.Security.KeyVault (1)
Aspire.Azure.Storage.Blobs (1)
Aspire.Azure.Storage.Queues (1)
Aspire.Confluent.Kafka (4)
AspireKafkaConsumerExtensions.cs (2)
121builder.Services.AddKeyedSingleton<ConsumerConnectionFactory<TKey, TValue>>(serviceKey, (sp, key) => CreateConsumerConnectionFactory<TKey, TValue>(sp, configureBuilder, settings));
122builder.Services.AddKeyedSingleton<IConsumer<TKey, TValue>>(serviceKey, (sp, key) => sp.GetRequiredKeyedService<ConsumerConnectionFactory<TKey, TValue>>(key).Create());
AspireKafkaProducerExtensions.cs (2)
121builder.Services.AddKeyedSingleton<ProducerConnectionFactory<TKey, TValue>>(serviceKey, (sp, key) => CreateProducerConnectionFactory<TKey, TValue>(sp, configureBuilder, settings));
122builder.Services.AddKeyedSingleton<IProducer<TKey, TValue>>(serviceKey, (sp, key) => sp.GetRequiredKeyedService<ProducerConnectionFactory<TKey, TValue>>(key).Create());
Aspire.Elastic.Clients.Elasticsearch (1)
Aspire.Microsoft.Azure.Cosmos (1)
Aspire.Milvus.Client (1)
Aspire.MongoDB.Driver (2)
Aspire.OpenAI (1)
Aspire.Qdrant.Client (1)
Aspire.RabbitMQ.Client (1)
Aspire.StackExchange.Redis (1)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.DependencyInjection.AutoActivation (1)