2 implementations of IHostApplicationBuilder
Microsoft.AspNetCore (1)
WebApplicationBuilder.cs (1)
22public sealed class WebApplicationBuilder : IHostApplicationBuilder
Microsoft.Extensions.Hosting (1)
HostApplicationBuilder.cs (1)
20public sealed class HostApplicationBuilder : IHostApplicationBuilder
340 references to IHostApplicationBuilder
Aspire.Azure.AI.OpenAI (13)
AspireAzureOpenAIExtensions.cs (5)
21/// Provides extension methods for registering <see cref="AzureOpenAIClient"/> as a singleton in the services provided by the <see cref="IHostApplicationBuilder"/>. 32/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 38this IHostApplicationBuilder builder, 54/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 60this IHostApplicationBuilder builder,
AspireConfigurableOpenAIExtensions.cs (5)
13/// Provides extension methods for registering <see cref="OpenAIClient"/> or <see cref="AzureOpenAIClient"/> as a singleton in the services provided by the <see cref="IHostApplicationBuilder"/>. 25/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 28this IHostApplicationBuilder builder, 55/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 58this IHostApplicationBuilder builder,
src\Components\Common\AzureComponent.cs (1)
45IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Data.Tables (8)
AspireTablesExtensions.cs (5)
18/// Provides extension methods for registering <see cref="TableServiceClient"/> as a singleton in the services provided by the <see cref="IHostApplicationBuilder"/>. 28/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 35this IHostApplicationBuilder builder, 47/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 54this IHostApplicationBuilder builder,
src\Components\Common\AzureComponent.cs (1)
45IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
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,
src\Components\Common\AzureComponent.cs (1)
45IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Messaging.ServiceBus (8)
AspireServiceBusExtensions.cs (5)
19/// Provides extension methods for registering <see cref="ServiceBusClient"/> as a singleton in the services provided by the <see cref="IHostApplicationBuilder"/>. 28/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 35this IHostApplicationBuilder builder, 46/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 53this IHostApplicationBuilder builder,
src\Components\Common\AzureComponent.cs (1)
45IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Messaging.WebPubSub (8)
AspireWebPubSubExtensions.cs (5)
18/// Provides extension methods for registering <see cref="WebPubSubServiceClient"/> as a singleton in the services provided by the <see cref="IHostApplicationBuilder"/>. 27/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 34this IHostApplicationBuilder builder, 45/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 53this IHostApplicationBuilder builder,
src\Components\Common\AzureComponent.cs (1)
45IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Search.Documents (8)
AspireAzureSearchExtensions.cs (5)
20/// Provides extension methods for registering <see cref="SearchIndexClient"/> as a singleton in the services provided by the <see cref="IHostApplicationBuilder"/>. 29/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 35this IHostApplicationBuilder builder, 46/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 52this IHostApplicationBuilder builder,
src\Components\Common\AzureComponent.cs (1)
45IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Security.KeyVault (7)
AspireKeyVaultExtensions.cs (4)
30/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 37this IHostApplicationBuilder builder, 49/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 56this IHostApplicationBuilder builder,
src\Components\Common\AzureComponent.cs (1)
45IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Storage.Blobs (8)
AspireBlobStorageExtensions.cs (5)
18/// Provides extension methods for registering <see cref="BlobServiceClient"/> as a singleton in the services provided by the <see cref="IHostApplicationBuilder"/>. 28/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 35this IHostApplicationBuilder builder, 47/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 54this IHostApplicationBuilder builder,
src\Components\Common\AzureComponent.cs (1)
45IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Azure.Storage.Queues (8)
AspireQueueStorageExtensions.cs (5)
18/// Provides extension methods for registering <see cref="QueueServiceClient"/> as a singleton in the services provided by the <see cref="IHostApplicationBuilder"/>. 29/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 36this IHostApplicationBuilder builder, 48/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 55this IHostApplicationBuilder builder,
src\Components\Common\AzureComponent.cs (1)
45IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
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)
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Elastic.Clients.Elasticsearch (7)
AspireElasticClientsElasticsearchExtensions.cs (5)
24/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 30this IHostApplicationBuilder builder, 45/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 51this IHostApplicationBuilder builder, 67this IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Elastic.Clients.Elasticsearch.Tests (2)
ElasticsearchClientPublicApiTests.cs (2)
14IHostApplicationBuilder builder = null!; 53IHostApplicationBuilder builder = null!;
Aspire.Microsoft.Azure.Cosmos (5)
AspireMicrosoftAzureCosmosExtensions.cs (5)
24/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 31this IHostApplicationBuilder builder, 43/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 50this IHostApplicationBuilder builder, 59this IHostApplicationBuilder builder,
Aspire.Microsoft.Data.SqlClient (7)
AspireSqlServerSqlClientExtensions.cs (5)
26/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 31public static void AddSqlServerClient(this IHostApplicationBuilder builder, string connectionName, Action<MicrosoftDataSqlClientSettings>? configureSettings = null) 38/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 43public static void AddKeyedSqlServerClient(this IHostApplicationBuilder builder, string name, Action<MicrosoftDataSqlClientSettings>? configureSettings = null) 50private static void AddSqlClient(IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (8)
AspireAzureEFCoreCosmosExtensions.cs (4)
31/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 39this IHostApplicationBuilder builder, 122this IHostApplicationBuilder builder, 174private static void ConfigureInstrumentation<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors | DynamicallyAccessedMemberTypes.PublicProperties)] TContext>(IHostApplicationBuilder builder, EntityFrameworkCoreCosmosSettings settings) where TContext : DbContext
src\Components\Common\EntityFrameworkUtils.cs (4)
17public static TSettings GetDbContextSettings<TContext, TSettings>(this IHostApplicationBuilder builder, string defaultConfigSectionName, Action<TSettings, IConfiguration> bindSettings) 34public static ServiceDescriptor CheckDbContextRegistered<TContext>(this IHostApplicationBuilder builder, [CallerMemberName] string memberName = "") 54public static void PatchServiceDescriptor<TContext>(this IHostApplicationBuilder builder, Action<DbContextOptionsBuilder<TContext>>? configureDbContextOptions = null, [CallerMemberName] string memberName = "") 90public static void EnsureDbContextNotRegistered<TContext>(this IHostApplicationBuilder builder, [CallerMemberName] string callerMemberName = "") where TContext : DbContext
Aspire.Microsoft.EntityFrameworkCore.SqlServer (10)
AspireSqlServerEFCoreSqlClientExtensions.cs (4)
30/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 38this IHostApplicationBuilder builder, 95this IHostApplicationBuilder builder, 173private static void ConfigureInstrumentation<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors | DynamicallyAccessedMemberTypes.PublicProperties)] TContext>(IHostApplicationBuilder builder, MicrosoftEntityFrameworkCoreSqlServerSettings settings) where TContext : DbContext
src\Components\Common\EntityFrameworkUtils.cs (4)
17public static TSettings GetDbContextSettings<TContext, TSettings>(this IHostApplicationBuilder builder, string defaultConfigSectionName, Action<TSettings, IConfiguration> bindSettings) 34public static ServiceDescriptor CheckDbContextRegistered<TContext>(this IHostApplicationBuilder builder, [CallerMemberName] string memberName = "") 54public static void PatchServiceDescriptor<TContext>(this IHostApplicationBuilder builder, Action<DbContextOptionsBuilder<TContext>>? configureDbContextOptions = null, [CallerMemberName] string memberName = "") 90public static void EnsureDbContextNotRegistered<TContext>(this IHostApplicationBuilder builder, [CallerMemberName] string callerMemberName = "") where TContext : DbContext
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Milvus.Client (8)
AspireMilvusExtensions.cs (6)
15/// Provides extension methods for registering Milvus-related services in an <see cref="IHostApplicationBuilder"/>. 25/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 31this IHostApplicationBuilder builder, 45/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 51this IHostApplicationBuilder builder, 61this IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Milvus.Client.Tests (2)
MilvusClientPublicApiTests.cs (2)
14IHostApplicationBuilder builder = null!; 53IHostApplicationBuilder builder = null!;
Aspire.MongoDB.Driver (11)
AspireMongoDBDriverExtensions.cs (9)
26/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 33this IHostApplicationBuilder builder, 47/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 55this IHostApplicationBuilder builder, 71this IHostApplicationBuilder builder, 103this IHostApplicationBuilder builder, 123this IHostApplicationBuilder builder, 160this IHostApplicationBuilder builder, 202this IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.MongoDB.Driver.Tests (2)
MongoDBDriverPublicApiTests.cs (2)
14IHostApplicationBuilder builder = null!; 50IHostApplicationBuilder builder = null!;
Aspire.MySqlConnector (8)
AspireMySqlConnectorExtensions.cs (6)
26/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 32public static void AddMySqlDataSource(this IHostApplicationBuilder builder, string connectionName, Action<MySqlConnectorSettings>? configureSettings = null) 39/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 46public static void AddKeyedMySqlDataSource(this IHostApplicationBuilder builder, string name, Action<MySqlConnectorSettings>? configureSettings = null) 53private static void AddMySqlDataSource(IHostApplicationBuilder builder, 107private static void RegisterMySqlServices(this IHostApplicationBuilder builder, MySqlConnectorSettings settings, string connectionName, object? serviceKey)
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
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)
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.NATS.Net.Tests (3)
NatsClientPublicApiTests.cs (3)
14IHostApplicationBuilder builder = null!; 53IHostApplicationBuilder builder = null!; 92IHostApplicationBuilder builder = null!;
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)
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (10)
AspireEFPostgreSqlExtensions.cs (4)
31/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 46this IHostApplicationBuilder builder, 106this IHostApplicationBuilder builder, 188private static void ConfigureInstrumentation<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors | DynamicallyAccessedMemberTypes.PublicProperties)] TContext>(IHostApplicationBuilder builder, NpgsqlEntityFrameworkCorePostgreSQLSettings settings) where TContext : DbContext
src\Components\Common\EntityFrameworkUtils.cs (4)
17public static TSettings GetDbContextSettings<TContext, TSettings>(this IHostApplicationBuilder builder, string defaultConfigSectionName, Action<TSettings, IConfiguration> bindSettings) 34public static ServiceDescriptor CheckDbContextRegistered<TContext>(this IHostApplicationBuilder builder, [CallerMemberName] string memberName = "") 54public static void PatchServiceDescriptor<TContext>(this IHostApplicationBuilder builder, Action<DbContextOptionsBuilder<TContext>>? configureDbContextOptions = null, [CallerMemberName] string memberName = "") 90public static void EnsureDbContextNotRegistered<TContext>(this IHostApplicationBuilder builder, [CallerMemberName] string callerMemberName = "") where TContext : DbContext
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.OpenAI (6)
AspireOpenAIExtensions.cs (6)
15/// Provides extension methods for registering <see cref="OpenAIClient"/> as a singleton 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> 30this IHostApplicationBuilder builder, 44/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 50this IHostApplicationBuilder builder, 62this IHostApplicationBuilder builder,
Aspire.Oracle.EntityFrameworkCore (10)
AspireOracleEFCoreExtensions.cs (4)
31/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 39this IHostApplicationBuilder builder, 94this IHostApplicationBuilder builder, 176private static void ConfigureInstrumentation<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors | DynamicallyAccessedMemberTypes.PublicProperties)] TContext>(IHostApplicationBuilder builder, OracleEntityFrameworkCoreSettings settings) where TContext : DbContext
src\Components\Common\EntityFrameworkUtils.cs (4)
17public static TSettings GetDbContextSettings<TContext, TSettings>(this IHostApplicationBuilder builder, string defaultConfigSectionName, Action<TSettings, IConfiguration> bindSettings) 34public static ServiceDescriptor CheckDbContextRegistered<TContext>(this IHostApplicationBuilder builder, [CallerMemberName] string memberName = "") 54public static void PatchServiceDescriptor<TContext>(this IHostApplicationBuilder builder, Action<DbContextOptionsBuilder<TContext>>? configureDbContextOptions = null, [CallerMemberName] string memberName = "") 90public static void EnsureDbContextNotRegistered<TContext>(this IHostApplicationBuilder builder, [CallerMemberName] string callerMemberName = "") where TContext : DbContext
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Pomelo.EntityFrameworkCore.MySql (10)
AspireEFMySqlExtensions.cs (4)
35/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 50this IHostApplicationBuilder builder, 142this IHostApplicationBuilder builder, 231private static void ConfigureInstrumentation<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors | DynamicallyAccessedMemberTypes.PublicProperties)] TContext>(IHostApplicationBuilder builder, PomeloEntityFrameworkCoreMySqlSettings settings) where TContext : DbContext
src\Components\Common\EntityFrameworkUtils.cs (4)
17public static TSettings GetDbContextSettings<TContext, TSettings>(this IHostApplicationBuilder builder, string defaultConfigSectionName, Action<TSettings, IConfiguration> bindSettings) 34public static ServiceDescriptor CheckDbContextRegistered<TContext>(this IHostApplicationBuilder builder, [CallerMemberName] string memberName = "") 54public static void PatchServiceDescriptor<TContext>(this IHostApplicationBuilder builder, Action<DbContextOptionsBuilder<TContext>>? configureDbContextOptions = null, [CallerMemberName] string memberName = "") 90public static void EnsureDbContextNotRegistered<TContext>(this IHostApplicationBuilder builder, [CallerMemberName] string callerMemberName = "") where TContext : DbContext
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Qdrant.Client (8)
AspireQdrantExtensions.cs (6)
15/// Provides extension methods for registering Qdrant-related services in an <see cref="IHostApplicationBuilder"/>. 25/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 31this IHostApplicationBuilder builder, 42/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 48this IHostApplicationBuilder builder, 56this IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.RabbitMQ.Client (7)
AspireRabbitMQExtensions.cs (5)
33/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 39this IHostApplicationBuilder builder, 49/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 55this IHostApplicationBuilder builder, 66IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.Seq (4)
AspireSeqExtensions.cs (2)
26/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 30this IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.StackExchange.Redis (8)
AspireRedisExtensions.cs (6)
19/// Provides extension methods for registering Redis-related services in an <see cref="IHostApplicationBuilder"/>. 29/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 35this IHostApplicationBuilder builder, 45/// <param name="builder">The <see cref="IHostApplicationBuilder" /> to read config from and add services to.</param> 51this IHostApplicationBuilder builder, 62IHostApplicationBuilder builder,
src\Components\Common\HealthChecksExtensions.cs (2)
15public static void TryAddHealthCheck(this IHostApplicationBuilder builder, HealthCheckRegistration healthCheckRegistration) 23public static void TryAddHealthCheck(this IHostApplicationBuilder builder, string name, Action<IHealthChecksBuilder> addHealthCheck)
Aspire.StackExchange.Redis.DistributedCaching (6)
AspireRedisDistributedCacheExtensions.cs (6)
13/// Provides extension methods for adding Redis distributed caching services to an <see cref="IHostApplicationBuilder"/>. 20/// <param name="builder">The <see cref="IHostApplicationBuilder"/> to read config from and add services to.</param> 30public static void AddRedisDistributedCache(this IHostApplicationBuilder builder, string connectionName, Action<StackExchangeRedisSettings>? configureSettings = null, Action<ConfigurationOptions>? configureOptions = null) 43/// <param name="builder">The <see cref="IHostApplicationBuilder"/> to read config from and add services to.</param> 53public static void AddKeyedRedisDistributedCache(this IHostApplicationBuilder builder, string name, Action<StackExchangeRedisSettings>? configureSettings = null, Action<ConfigurationOptions>? configureOptions = null) 63private static void AddRedisDistributedCacheCore(this IHostApplicationBuilder builder, Action<RedisCacheOptions, IServiceProvider> configureRedisOptions)
Aspire.StackExchange.Redis.OutputCaching (6)
AspireRedisOutputCacheExtensions.cs (6)
12/// Provides extension methods for adding Redis output caching services to the <see cref="IHostApplicationBuilder"/>. 19/// <param name="builder">The <see cref="IHostApplicationBuilder"/> to read config from and add services to.</param> 29public static void AddRedisOutputCache(this IHostApplicationBuilder builder, string connectionName, Action<StackExchangeRedisSettings>? configureSettings = null, Action<ConfigurationOptions>? configureOptions = null) 42/// <param name="builder">The <see cref="IHostApplicationBuilder"/> to read config from and add services to.</param> 52public static void AddKeyedRedisOutputCache(this IHostApplicationBuilder builder, string name, Action<StackExchangeRedisSettings>? configureSettings = null, Action<ConfigurationOptions>? configureOptions = null) 62private static void AddRedisOutputCacheCore(this IHostApplicationBuilder builder, Action<RedisOutputCacheOptions, IServiceProvider> configureRedisOptions)
Microsoft.AspNetCore (5)
WebApplicationBuilder.cs (5)
366IDictionary<object, object> IHostApplicationBuilder.Properties => ((IHostApplicationBuilder)_hostApplicationBuilder).Properties; 368IConfigurationManager IHostApplicationBuilder.Configuration => Configuration; 370IHostEnvironment IHostApplicationBuilder.Environment => Environment; 482void IHostApplicationBuilder.ConfigureContainer<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder> factory, Action<TContainerBuilder>? configure) =>
Microsoft.AspNetCore.Tests (2)
WebApplicationTests.cs (2)
2517var iHostApplicationBuilder = (IHostApplicationBuilder)builder;
Microsoft.Extensions.Hosting (2)
HostApplicationBuilder.cs (2)
188IDictionary<object, object> IHostApplicationBuilder.Properties => _hostBuilderContext.Properties; 201IConfigurationManager IHostApplicationBuilder.Configuration => Configuration;
OrleansServiceDefaults (4)
Extensions.cs (4)
17public static TBuilder AddServiceDefaults<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 37public static TBuilder ConfigureOpenTelemetry<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 68private static TBuilder AddOpenTelemetryExporters<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 87public static TBuilder AddDefaultHealthChecks<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder
Playground.ServiceDefaults (4)
Extensions.cs (4)
17public static TBuilder AddServiceDefaults<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 37public static TBuilder ConfigureOpenTelemetry<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 65private static TBuilder AddOpenTelemetryExporters<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 84public static TBuilder AddDefaultHealthChecks<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder
Seq.ServiceDefaults (4)
Extensions.cs (4)
17public static TBuilder AddServiceDefaults<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 37public static TBuilder ConfigureOpenTelemetry<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 67private static TBuilder AddOpenTelemetryExporters<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 86public static TBuilder AddDefaultHealthChecks<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder
TestingAppHost1.ServiceDefaults (4)
Extensions.cs (4)
20public static TBuilder AddServiceDefaults<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 46public static TBuilder ConfigureOpenTelemetry<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 74private static TBuilder AddOpenTelemetryExporters<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 93public static TBuilder AddDefaultHealthChecks<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder
TestShop.ServiceDefaults (4)
Extensions.cs (4)
17public static TBuilder AddServiceDefaults<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 37public static TBuilder ConfigureOpenTelemetry<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 64private static TBuilder AddOpenTelemetryExporters<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder 83public static TBuilder AddDefaultHealthChecks<TBuilder>(this TBuilder builder) where TBuilder : IHostApplicationBuilder