2 implementations of Services
Microsoft.AspNetCore (1)
Microsoft.Extensions.Hosting (1)
206 references to Services
Aspire.Azure.AI.OpenAI (8)
Aspire.Azure.Data.Tables (6)
Aspire.Azure.Messaging.EventHubs (6)
Aspire.Azure.Messaging.ServiceBus (6)
Aspire.Azure.Messaging.WebPubSub (6)
Aspire.Azure.Search.Documents (6)
Aspire.Azure.Security.KeyVault (6)
Aspire.Azure.Storage.Blobs (6)
Aspire.Azure.Storage.Queues (6)
Aspire.Confluent.Kafka (19)
AspireKafkaConsumerExtensions.cs (9)
116builder.Services.AddSingleton<ConsumerConnectionFactory<TKey, TValue>>(sp => CreateConsumerConnectionFactory<TKey, TValue>(sp, configureBuilder, settings));
117builder.Services.AddSingleton<IConsumer<TKey, TValue>>(sp => sp.GetRequiredService<ConsumerConnectionFactory<TKey, TValue>>().Create());
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());
127builder.Services.TryAddSingleton<MetricsChannel>();
128builder.Services.AddHostedService<MetricsService>();
129builder.Services.TryAddSingleton<ConfluentKafkaMetrics>();
130builder.Services.AddOpenTelemetry().WithMetrics(metricBuilderProvider => metricBuilderProvider.AddMeter(ConfluentKafkaCommon.MeterName));
139builder.Services.TryAddKeyedSingleton<KafkaHealthCheck>(healthCheckName,
AspireKafkaProducerExtensions.cs (9)
116builder.Services.AddSingleton<ProducerConnectionFactory<TKey, TValue>>(sp => CreateProducerConnectionFactory<TKey, TValue>(sp, configureBuilder, settings));
117builder.Services.AddSingleton<IProducer<TKey, TValue>>(sp => sp.GetRequiredService<ProducerConnectionFactory<TKey, TValue>>().Create());
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());
127builder.Services.TryAddSingleton<MetricsChannel>();
128builder.Services.AddHostedService<MetricsService>();
129builder.Services.TryAddSingleton<ConfluentKafkaMetrics>();
130builder.Services.AddOpenTelemetry().WithMetrics(metricBuilderProvider => metricBuilderProvider.AddMeter(ConfluentKafkaCommon.MeterName));
139builder.Services.TryAddKeyedSingleton<KafkaHealthCheck>(healthCheckName,
Aspire.Elastic.Clients.Elasticsearch (4)
Aspire.Microsoft.Azure.Cosmos (3)
Aspire.Microsoft.Data.SqlClient (4)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (7)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (8)
Aspire.Milvus.Client (3)
Aspire.MongoDB.Driver (6)
Aspire.MySqlConnector (5)
Aspire.NATS.Net (7)
Aspire.Npgsql (4)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (9)
Aspire.OpenAI (5)
Aspire.Oracle.EntityFrameworkCore (7)
Aspire.Pomelo.EntityFrameworkCore.MySql (9)
Aspire.Qdrant.Client (3)
Aspire.RabbitMQ.Client (7)
Aspire.Seq (3)
Aspire.StackExchange.Redis (7)
AspireRedisExtensions.cs (6)
87builder.Services.AddKeyedTransient(optionsName, (sp, _) => new RedisSettingsAdapterService { Settings = settings });
88builder.Services.TryAddTransient<IOptionsFactory<ConfigurationOptions>, ConfigurationOptionsFactory>();
90builder.Services.Configure<ConfigurationOptions>(
102builder.Services.AddSingleton<IConnectionMultiplexer>(sp => CreateConnection(sp, connectionName, DefaultConfigSectionName, optionsName));
106builder.Services.AddKeyedSingleton<IConnectionMultiplexer>(serviceKey, (sp, _) => CreateConnection(sp, connectionName, DefaultConfigSectionName, optionsName));
116builder.Services.AddOpenTelemetry()
Aspire.StackExchange.Redis.DistributedCaching (2)
Aspire.StackExchange.Redis.OutputCaching (2)
Microsoft.AspNetCore.Tests (1)
OrleansServiceDefaults (5)
Playground.ServiceDefaults (5)
Seq.ServiceDefaults (5)
TestingAppHost1.ServiceDefaults (5)
TestShop.ServiceDefaults (5)