2 implementations of IHostApplicationBuilder
Microsoft.AspNetCore (1)
Microsoft.Extensions.Hosting (1)
340 references to IHostApplicationBuilder
Aspire.Azure.AI.OpenAI (13)
Aspire.Azure.Data.Tables (8)
Aspire.Azure.Messaging.EventHubs (24)
AspireEventHubsExtensions.cs (21)
15/// Provides extension methods for registering Event Hubs clients in the services provided by the <see cref="IHostApplicationBuilder"/>.
24/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
31this IHostApplicationBuilder builder,
44/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
51this IHostApplicationBuilder builder,
66/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
73this IHostApplicationBuilder builder,
86/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
93this IHostApplicationBuilder builder,
108/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
115this IHostApplicationBuilder builder,
128/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
135this IHostApplicationBuilder builder,
150/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
157this IHostApplicationBuilder builder,
171/// <param name="builder">The <see cref="IHostApplicationBuilder"/> to read config from and add services to.</param>
179this IHostApplicationBuilder builder,
194/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
201this IHostApplicationBuilder builder,
214/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
222this IHostApplicationBuilder builder,
Aspire.Azure.Messaging.ServiceBus (8)
Aspire.Azure.Messaging.WebPubSub (8)
Aspire.Azure.Search.Documents (8)
Aspire.Azure.Security.KeyVault (7)
Aspire.Azure.Storage.Blobs (8)
Aspire.Azure.Storage.Queues (8)
Aspire.Confluent.Kafka (54)
AspireKafkaConsumerExtensions.cs (26)
23/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
24public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName)
27/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
28public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<KafkaConsumerSettings>? configureSettings)
31/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
32public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<ConsumerBuilder<TKey, TValue>>? configureBuilder)
35/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
36public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder)
39/// <inheritdoc cref="AddKafkaConsumer{TKey,TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider,ConsumerBuilder{TKey,TValue}}?)"/>
40public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<KafkaConsumerSettings>? configureSettings, Action<ConsumerBuilder<TKey, TValue>>? configureBuilder)
46/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
51public static void AddKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<KafkaConsumerSettings>? configureSettings, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder)
54/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
55public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name)
61/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
62public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<KafkaConsumerSettings>? configureSettings)
68/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
69public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<ConsumerBuilder<TKey, TValue>>? configureBuilder)
75/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
76public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder)
82/// <inheritdoc cref="AddKeyedKafkaConsumer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaConsumerSettings}?, Action{IServiceProvider, ConsumerBuilder{TKey, TValue}}?)"/>
83public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<KafkaConsumerSettings>? configureSettings, Action<ConsumerBuilder<TKey, TValue>>? configureBuilder)
92/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
97public static void AddKeyedKafkaConsumer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<KafkaConsumerSettings>? configureSettings, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder)
104IHostApplicationBuilder builder,
211private static KafkaConsumerSettings BuildConsumerSettings(IHostApplicationBuilder builder, Action<KafkaConsumerSettings>? configureSettings, string connectionName)
AspireKafkaProducerExtensions.cs (26)
23/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
24public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName)
27/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
28public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<KafkaProducerSettings>? configureSettings)
31/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
32public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<ProducerBuilder<TKey, TValue>>? configureBuilder)
35/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
36public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder)
39/// <inheritdoc cref="AddKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
40public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<KafkaProducerSettings>? configureSettings, Action<ProducerBuilder<TKey, TValue>>? configureBuilder)
46/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
51public static void AddKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string connectionName, Action<KafkaProducerSettings>? configureSettings, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder)
54/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
55public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name)
61/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
62public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<KafkaProducerSettings>? configureSettings)
68/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
69public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<ProducerBuilder<TKey, TValue>>? configureBuilder)
75/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
76public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder)
82/// <inheritdoc cref="AddKeyedKafkaProducer{TKey, TValue}(IHostApplicationBuilder, string, Action{KafkaProducerSettings}?, Action{IServiceProvider, ProducerBuilder{TKey, TValue}}?)"/>
83public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<KafkaProducerSettings>? configureSettings, Action<ProducerBuilder<TKey, TValue>>? configureBuilder)
92/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
97public static void AddKeyedKafkaProducer<TKey, TValue>(this IHostApplicationBuilder builder, string name, Action<KafkaProducerSettings>? configureSettings, Action<IServiceProvider, ProducerBuilder<TKey, TValue>>? configureBuilder)
104IHostApplicationBuilder builder,
211private static KafkaProducerSettings BuildProducerSettings(IHostApplicationBuilder builder, Action<KafkaProducerSettings>? configureSettings, string connectionName)
Aspire.Elastic.Clients.Elasticsearch (7)
Aspire.Elastic.Clients.Elasticsearch.Tests (2)
Aspire.Microsoft.Azure.Cosmos (5)
Aspire.Microsoft.Data.SqlClient (7)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (8)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (10)
Aspire.Milvus.Client (8)
Aspire.Milvus.Client.Tests (2)
Aspire.MongoDB.Driver (11)
Aspire.MongoDB.Driver.Tests (2)
Aspire.MySqlConnector (8)
Aspire.NATS.Net (9)
AspireNatsClientExtensions.cs (7)
28/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
34public static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, Action<NatsClientSettings>? configureSettings = null, Func<NatsOpts, NatsOpts>? configureOptions = null)
46/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
53public static void AddKeyedNatsClient(this IHostApplicationBuilder builder, string name, Action<NatsClientSettings>? configureSettings = null, Func<NatsOpts, NatsOpts>? configureOptions = null)
61private static void AddNatsClient(this IHostApplicationBuilder builder, string connectionName, object? serviceKey, Action<NatsClientSettings>? configureSettings, Func<NatsOpts, NatsOpts>? configureOptions)
137/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
139public static void AddNatsJetStream(this IHostApplicationBuilder builder)
Aspire.NATS.Net.Tests (3)
Aspire.Npgsql (8)
AspirePostgreSqlNpgsqlExtensions.cs (6)
25/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
32public static void AddNpgsqlDataSource(this IHostApplicationBuilder builder, string connectionName, Action<NpgsqlSettings>? configureSettings = null, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder = null)
39/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param>
47public static void AddKeyedNpgsqlDataSource(this IHostApplicationBuilder builder, string name, Action<NpgsqlSettings>? configureSettings = null, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder = null)
54private static void AddNpgsqlDataSource(IHostApplicationBuilder builder,
105private static void RegisterNpgsqlServices(this IHostApplicationBuilder builder, NpgsqlSettings settings, string connectionName, object? serviceKey, Action<NpgsqlDataSourceBuilder>? configureDataSourceBuilder)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (10)
Aspire.OpenAI (6)
Aspire.Oracle.EntityFrameworkCore (10)
Aspire.Pomelo.EntityFrameworkCore.MySql (10)
Aspire.Qdrant.Client (8)
Aspire.RabbitMQ.Client (7)
Aspire.Seq (4)
Aspire.StackExchange.Redis (8)
Aspire.StackExchange.Redis.DistributedCaching (6)
Aspire.StackExchange.Redis.OutputCaching (6)
Microsoft.AspNetCore (5)
Microsoft.AspNetCore.Tests (2)
Microsoft.Extensions.Hosting (2)
OrleansServiceDefaults (4)
Playground.ServiceDefaults (4)
Seq.ServiceDefaults (4)
TestingAppHost1.ServiceDefaults (4)
TestShop.ServiceDefaults (4)