6 instantiations of HostApplicationBuilder
Aspire.Hosting (1)
DistributedApplicationBuilder.cs (1)
134_innerBuilder = new HostApplicationBuilder(innerBuilderOptions);
Microsoft.AspNetCore (1)
WebApplicationBuilder.cs (1)
40_hostApplicationBuilder = new HostApplicationBuilder(new HostApplicationBuilderSettings
Microsoft.Extensions.Hosting (4)
Host.cs (4)
75public static HostApplicationBuilder CreateApplicationBuilder() => new HostApplicationBuilder(); 96public static HostApplicationBuilder CreateApplicationBuilder(string[]? args) => new HostApplicationBuilder(args); 101=> new HostApplicationBuilder(settings); 109=> new HostApplicationBuilder(settings, empty: true);
474 references to HostApplicationBuilder
Aspire.Azure.AI.OpenAI.Tests (29)
AspireAzureAIOpenAIExtensionsTests.cs (6)
29var builder = Host.CreateEmptyApplicationBuilder(null); 60var builder = Host.CreateEmptyApplicationBuilder(null); 89var builder = Host.CreateEmptyApplicationBuilder(null); 115var builder = Host.CreateEmptyApplicationBuilder(null); 131var builder = Host.CreateEmptyApplicationBuilder(null); 164var builder = Host.CreateEmptyApplicationBuilder(null);
AspireAzureOpenAIClientBuilderChatClientExtensionsTests.cs (7)
19var builder = Host.CreateEmptyApplicationBuilder(null); 50var builder = Host.CreateEmptyApplicationBuilder(null); 78var builder = Host.CreateEmptyApplicationBuilder(null); 106var builder = Host.CreateEmptyApplicationBuilder(null); 137var builder = Host.CreateEmptyApplicationBuilder(null); 170var builder = Host.CreateEmptyApplicationBuilder(null); 198var builder = Host.CreateEmptyApplicationBuilder(null);
AspireAzureOpenAIClientBuilderEmbeddingGeneratorExtensionsTests.cs (7)
19var builder = Host.CreateEmptyApplicationBuilder(null); 50var builder = Host.CreateEmptyApplicationBuilder(null); 78var builder = Host.CreateEmptyApplicationBuilder(null); 106var builder = Host.CreateEmptyApplicationBuilder(null); 137var builder = Host.CreateEmptyApplicationBuilder(null); 170var builder = Host.CreateEmptyApplicationBuilder(null); 198var builder = Host.CreateEmptyApplicationBuilder(null);
AspireConfigurableOpenAIExtensionsTests.cs (8)
20var builder = Host.CreateEmptyApplicationBuilder(null); 43var builder = Host.CreateEmptyApplicationBuilder(null); 70var builder = Host.CreateEmptyApplicationBuilder(null); 97var builder = Host.CreateEmptyApplicationBuilder(null); 125var builder = Host.CreateEmptyApplicationBuilder(null); 143var builder = Host.CreateEmptyApplicationBuilder(null); 170var builder = Host.CreateEmptyApplicationBuilder(null); 197var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
63protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureOpenAISettings>? configure = null, string? key = null)
Aspire.Azure.Data.Tables.Tests (6)
AspireTablesExtensionsTests.cs (5)
21var builder = Host.CreateEmptyApplicationBuilder(null); 48var builder = Host.CreateEmptyApplicationBuilder(null); 75var builder = Host.CreateEmptyApplicationBuilder(null); 105var builder = Host.CreateEmptyApplicationBuilder(null); 131var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
76protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureDataTablesSettings>? configure = null, string? key = null)
Aspire.Azure.Messaging.EventHubs.Tests (11)
AspireEventHubsExtensionsTests.cs (11)
31private static readonly Action<HostApplicationBuilder, string, Action<AzureMessagingEventHubsSettings>?>[] s_keyedClientAdders = 40private static readonly Action<HostApplicationBuilder, string, Action<AzureMessagingEventHubsSettings>?>[] s_clientAdders = 76var builder = Host.CreateEmptyApplicationBuilder(null); 123var builder = Host.CreateEmptyApplicationBuilder(null); 192var builder = Host.CreateEmptyApplicationBuilder(null); 254var builder = Host.CreateEmptyApplicationBuilder(null); 320var builder = Host.CreateEmptyApplicationBuilder(null); 366var builder = Host.CreateEmptyApplicationBuilder(null); 414var builder = Host.CreateEmptyApplicationBuilder(null); 496var builder = Host.CreateEmptyApplicationBuilder(null); 544var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.Azure.Messaging.ServiceBus.Tests (7)
AspireServiceBusExtensionsTests.cs (6)
21var builder = Host.CreateEmptyApplicationBuilder(null); 48var builder = Host.CreateEmptyApplicationBuilder(null); 75var builder = Host.CreateEmptyApplicationBuilder(null); 105var builder = Host.CreateEmptyApplicationBuilder(null); 131var builder = Host.CreateEmptyApplicationBuilder(null); 161var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
69protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureMessagingServiceBusSettings>? configure = null, string? key = null)
Aspire.Azure.Messaging.WebPubSub.Tests (9)
AspireWebPubSubExtensionsTests.cs (8)
22var builder = Host.CreateEmptyApplicationBuilder(null); 50var builder = Host.CreateEmptyApplicationBuilder(null); 85var builder = Host.CreateEmptyApplicationBuilder(null); 116var builder = Host.CreateEmptyApplicationBuilder(null); 143var builder = Host.CreateEmptyApplicationBuilder(null); 158var builder = Host.CreateEmptyApplicationBuilder(null); 169var builder = Host.CreateEmptyApplicationBuilder(null); 184var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
70protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureMessagingWebPubSubSettings>? configure = null, string? key = null)
Aspire.Azure.Search.Documents.Tests (4)
AspireAzureSearchExtensionsTests.cs (3)
22var builder = Host.CreateEmptyApplicationBuilder(null); 52var builder = Host.CreateEmptyApplicationBuilder(null); 75var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
63protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureSearchSettings>? configure = null, string? key = null)
Aspire.Azure.Security.KeyVault.Tests (5)
AspireKeyVaultExtensionsTests.cs (4)
24var builder = Host.CreateEmptyApplicationBuilder(null); 51var builder = Host.CreateEmptyApplicationBuilder(null); 79var builder = Host.CreateEmptyApplicationBuilder(null); 178var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
70protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureSecurityKeyVaultSettings>? configure = null, string? key = null)
Aspire.Azure.Storage.Blobs.Tests (6)
AspireBlobStorageExtensionsTests.cs (5)
21var builder = Host.CreateEmptyApplicationBuilder(null); 48var builder = Host.CreateEmptyApplicationBuilder(null); 75var builder = Host.CreateEmptyApplicationBuilder(null); 105var builder = Host.CreateEmptyApplicationBuilder(null); 131var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
77protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureStorageBlobsSettings>? configure = null, string? key = null)
Aspire.Azure.Storage.Queues.Tests (6)
AspireQueueStorageExtensionsTests.cs (5)
21var builder = Host.CreateEmptyApplicationBuilder(null); 48var builder = Host.CreateEmptyApplicationBuilder(null); 75var builder = Host.CreateEmptyApplicationBuilder(null); 105var builder = Host.CreateEmptyApplicationBuilder(null); 131var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
79protected override void RegisterComponent(HostApplicationBuilder builder, Action<AzureStorageQueuesSettings>? configure = null, string? key = null)
Aspire.Components.Common.Tests (11)
ConformanceTests.cs (11)
60protected abstract void RegisterComponent(HostApplicationBuilder builder, Action<TOptions>? configure = null, string? key = null); 240HostApplicationBuilder builder = Host.CreateEmptyApplicationBuilder(settings: null); 263HostApplicationBuilder builder = CreateHostBuilder(key: key); 360var builder = Host.CreateEmptyApplicationBuilder(null); 380var builder = Host.CreateEmptyApplicationBuilder(null); 402var builder = Host.CreateEmptyApplicationBuilder(null); 426HostApplicationBuilder builder = CreateHostBuilder(key: key); 459HostApplicationBuilder builder = CreateHostBuilder(hostSettings, key); 468HostApplicationBuilder builder = Host.CreateEmptyApplicationBuilder(settings: null); 538protected HostApplicationBuilder CreateHostBuilder(HostApplicationBuilderSettings? hostSettings = null, string? key = null) 540HostApplicationBuilder builder = Host.CreateEmptyApplicationBuilder(hostSettings);
Aspire.Confluent.Kafka.Tests (16)
ConsumerConfigurationTests.cs (5)
20var builder = Host.CreateEmptyApplicationBuilder(null); 52var builder = Host.CreateEmptyApplicationBuilder(null); 85var builder = Host.CreateEmptyApplicationBuilder(null); 129var builder = Host.CreateEmptyApplicationBuilder(null); 246var builder = Host.CreateEmptyApplicationBuilder(null);
ConsumerConformanceTests.cs (2)
35protected override void RegisterComponent(HostApplicationBuilder builder, Action<KafkaConsumerSettings>? configure = null, string? key = null) 91var builder = Host.CreateEmptyApplicationBuilder(null);
MetricsTests.cs (2)
23var builder = Host.CreateEmptyApplicationBuilder(null); 140var builder = Host.CreateEmptyApplicationBuilder(null);
ProducerConfigurationTests.cs (5)
20var builder = Host.CreateEmptyApplicationBuilder(null); 49var builder = Host.CreateEmptyApplicationBuilder(null); 79var builder = Host.CreateEmptyApplicationBuilder(null); 121var builder = Host.CreateEmptyApplicationBuilder(null); 235var builder = Host.CreateEmptyApplicationBuilder(null);
ProducerConformanceTests.cs (2)
34protected override void RegisterComponent(HostApplicationBuilder builder, Action<KafkaProducerSettings>? configure = null, string? key = null) 87var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.Elastic.Clients.Elasticsearch.Tests (12)
AspireElasticClientExtensionsTest.cs (7)
38var builder = CreateBuilder(DefaultConnectionString); 71var builder = CreateBuilder(DefaultConnectionString); 98var builder = Host.CreateEmptyApplicationBuilder(null); 123var builder = Host.CreateEmptyApplicationBuilder(null); 147var builder = CreateBuilder(connectionString); 169private static HostApplicationBuilder CreateBuilder(string connectionString) 171var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
47protected override void RegisterComponent(HostApplicationBuilder builder, Action<ElasticClientsElasticsearchSettings>? configure = null, string? key = null)
ElasticsearchClientPublicApiTests.cs (4)
27var builder = Host.CreateEmptyApplicationBuilder(null); 40var builder = Host.CreateEmptyApplicationBuilder(null); 66var builder = Host.CreateEmptyApplicationBuilder(null); 79var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.Hosting (4)
DistributedApplicationBuilder.cs (1)
53private readonly HostApplicationBuilder _innerBuilder;
IDistributedApplicationBuilder.cs (3)
55/// <inheritdoc cref="HostApplicationBuilder.Configuration" /> 68/// <inheritdoc cref="HostApplicationBuilder.Environment" /> 71/// <inheritdoc cref="HostApplicationBuilder.Services" />
Aspire.Hosting.Azure.Tests (5)
AzureCosmosDBEmulatorFunctionalTests.cs (3)
92var hb = Host.CreateApplicationBuilder(); 164var hb = Host.CreateApplicationBuilder(); 210var hb = Host.CreateApplicationBuilder();
AzureEventHubsExtensionsTests.cs (1)
77var hb = Host.CreateApplicationBuilder();
AzureStorageEmulatorFunctionalTests.cs (1)
77var hb = Host.CreateApplicationBuilder();
Aspire.Hosting.Elasticsearch.Tests (3)
ElasticsearchFunctionalTests.cs (3)
45var hb = Host.CreateApplicationBuilder(); 108var hb = Host.CreateApplicationBuilder(); 153var hb = Host.CreateApplicationBuilder();
Aspire.Hosting.Garnet.Tests (3)
GarnetFunctionalTests.cs (3)
76var hb = Host.CreateApplicationBuilder(); 155var hb = Host.CreateApplicationBuilder(); 206var hb = Host.CreateApplicationBuilder();
Aspire.Hosting.Kafka.Tests (3)
KafkaFunctionalTests.cs (3)
74var hb = Host.CreateApplicationBuilder(); 167var hb = Host.CreateApplicationBuilder(); 219var hb = Host.CreateApplicationBuilder();
Aspire.Hosting.Milvus.Tests (3)
MilvusFunctionalTests.cs (3)
34var hb = Host.CreateApplicationBuilder(); 108var hb = Host.CreateApplicationBuilder(); 156var hb = Host.CreateApplicationBuilder();
Aspire.Hosting.MongoDB.Tests (4)
MongoDbFunctionalTests.cs (4)
87var hb = Host.CreateApplicationBuilder(); 147var hb = Host.CreateApplicationBuilder(); 194var hb = Host.CreateApplicationBuilder(); 315var hb = Host.CreateApplicationBuilder();
Aspire.Hosting.MySql.Tests (5)
MySqlFunctionalTests.cs (5)
89var hb = Host.CreateApplicationBuilder(); 162var hb = Host.CreateApplicationBuilder(); 232var hb = Host.CreateApplicationBuilder(); 338var hb = Host.CreateApplicationBuilder(); 408var hb = Host.CreateApplicationBuilder();
Aspire.Hosting.Nats.Tests (5)
NatsFunctionalTests.cs (5)
39var hb = Host.CreateApplicationBuilder(); 84var hb = Host.CreateApplicationBuilder(); 128var hb = Host.CreateApplicationBuilder(); 190var hb = Host.CreateApplicationBuilder(); 238var hb = Host.CreateApplicationBuilder();
Aspire.Hosting.Oracle.Tests (4)
OracleFunctionalTests.cs (4)
50var hb = Host.CreateApplicationBuilder(); 133var hb = Host.CreateApplicationBuilder(); 194var hb = Host.CreateApplicationBuilder(); 308var hb = Host.CreateApplicationBuilder();
Aspire.Hosting.PostgreSQL.Tests (4)
PostgresFunctionalTests.cs (4)
119var hb = Host.CreateApplicationBuilder(); 235var hb = Host.CreateApplicationBuilder(); 296var hb = Host.CreateApplicationBuilder(); 388var hb = Host.CreateApplicationBuilder();
Aspire.Hosting.Qdrant.Tests (3)
QdrantFunctionalTests.cs (3)
42var hb = Host.CreateApplicationBuilder(); 126var hb = Host.CreateApplicationBuilder(); 171var hb = Host.CreateApplicationBuilder();
Aspire.Hosting.RabbitMQ.Tests (3)
RabbitMQFunctionalTests.cs (3)
73var hb = Host.CreateApplicationBuilder(); 133var hb = Host.CreateApplicationBuilder(); 190var hb = Host.CreateApplicationBuilder();
Aspire.Hosting.Redis.Tests (7)
RedisFunctionalTests.cs (7)
101var hb = Host.CreateApplicationBuilder(); 311var hb = Host.CreateApplicationBuilder(); 348var hb = Host.CreateApplicationBuilder(); 397var hb = Host.CreateApplicationBuilder(); 433var hb = Host.CreateApplicationBuilder(); 481var hb = Host.CreateApplicationBuilder(); 512var hb = Host.CreateApplicationBuilder();
Aspire.Hosting.SqlServer.Tests (3)
SqlServerFunctionalTests.cs (3)
79var hb = Host.CreateApplicationBuilder(); 181var hb1 = Host.CreateApplicationBuilder(); 263var hb2 = Host.CreateApplicationBuilder();
Aspire.Hosting.Testing (3)
DistributedApplicationTestingBuilder.cs (3)
243/// <inheritdoc cref="HostApplicationBuilder.Configuration" /> 256/// <inheritdoc cref="HostApplicationBuilder.Environment" /> 259/// <inheritdoc cref="HostApplicationBuilder.Services" />
Aspire.Hosting.Valkey.Tests (3)
ValkeyFunctionalTests.cs (3)
32var hb = Host.CreateApplicationBuilder(); 92var hb = Host.CreateApplicationBuilder(); 144var hb = Host.CreateApplicationBuilder();
Aspire.Keycloak.Authentication.Tests (8)
AspireKeycloakExtensionTests.cs (8)
20var builder = Host.CreateEmptyApplicationBuilder(null); 39var builder = Host.CreateEmptyApplicationBuilder(null); 58var builder = Host.CreateEmptyApplicationBuilder(null); 79var builder = Host.CreateEmptyApplicationBuilder(null); 101var builder = Host.CreateEmptyApplicationBuilder(null); 120var builder = Host.CreateEmptyApplicationBuilder(null); 139var builder = Host.CreateEmptyApplicationBuilder(null); 161var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.Microsoft.Azure.Cosmos.Tests (2)
ConformanceTests.cs (2)
28protected override void RegisterComponent(HostApplicationBuilder builder, Action<MicrosoftAzureCosmosSettings>? configure = null, string? key = null) 79var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.Microsoft.Data.SqlClient.Tests (5)
AspireSqlServerSqlClientExtensionsTests.cs (4)
21var builder = Host.CreateEmptyApplicationBuilder(null); 48var builder = Host.CreateEmptyApplicationBuilder(null); 78var builder = Host.CreateEmptyApplicationBuilder(null); 108var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
67protected override void RegisterComponent(HostApplicationBuilder builder, Action<MicrosoftDataSqlClientSettings>? configure = null, string? key = null)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (15)
AspireAzureEfCoreCosmosDBExtensionsTests.cs (6)
21var builder = Host.CreateEmptyApplicationBuilder(null); 57var builder = Host.CreateEmptyApplicationBuilder(null); 91var builder = Host.CreateEmptyApplicationBuilder(null); 134var builder = Host.CreateEmptyApplicationBuilder(null); 159var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 182var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
ConformanceTests.cs (1)
36protected override void RegisterComponent(HostApplicationBuilder builder, Action<EntityFrameworkCoreCosmosSettings>? configure = null, string? key = null)
EnrichCosmosDbTests.cs (8)
21protected override void RegisterComponent(HostApplicationBuilder builder, Action<EntityFrameworkCoreCosmosSettings>? configure = null, string? key = null) 30HostApplicationBuilder builder = Host.CreateEmptyApplicationBuilder(settings: null); 39HostApplicationBuilder builder = Host.CreateEmptyApplicationBuilder(settings: null); 54var builder = Host.CreateEmptyApplicationBuilder(null); 87var builder = Host.CreateEmptyApplicationBuilder(null); 104var builder = Host.CreateEmptyApplicationBuilder(null); 125var builder = Host.CreateEmptyApplicationBuilder(null); 142var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (24)
AspireSqlServerEFCoreSqlClientExtensionsTests.cs (10)
23var builder = Host.CreateEmptyApplicationBuilder(null); 39var builder = Host.CreateEmptyApplicationBuilder(null); 58var builder = Host.CreateEmptyApplicationBuilder(null); 78var builder = Host.CreateEmptyApplicationBuilder(null); 123var builder = Host.CreateEmptyApplicationBuilder(null); 163var builder = Host.CreateEmptyApplicationBuilder(null); 197var builder = Host.CreateEmptyApplicationBuilder(null); 235var builder = Host.CreateEmptyApplicationBuilder(null); 260var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 283var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
ConformanceTests.cs (1)
79protected override void RegisterComponent(HostApplicationBuilder builder, Action<MicrosoftEntityFrameworkCoreSqlServerSettings>? configure = null, string? key = null)
EnrichSqlServerTests.cs (13)
25protected override void RegisterComponent(HostApplicationBuilder builder, Action<MicrosoftEntityFrameworkCoreSqlServerSettings>? configure = null, string? key = null) 34HostApplicationBuilder builder = Host.CreateEmptyApplicationBuilder(settings: null); 43HostApplicationBuilder builder = Host.CreateEmptyApplicationBuilder(settings: null); 58var builder = Host.CreateEmptyApplicationBuilder(null); 96var builder = Host.CreateEmptyApplicationBuilder(null); 116var builder = Host.CreateEmptyApplicationBuilder(null); 148var builder = Host.CreateEmptyApplicationBuilder(null); 191var builder = Host.CreateEmptyApplicationBuilder(null); 228var builder = Host.CreateEmptyApplicationBuilder(null); 245var builder = Host.CreateEmptyApplicationBuilder(null); 266var builder = Host.CreateEmptyApplicationBuilder(null); 294var builder = Host.CreateEmptyApplicationBuilder(null); 311var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.Milvus.Client.Tests (11)
AspireMilvusExtensionTests.cs (5)
33var builder = Host.CreateEmptyApplicationBuilder(null); 61var builder = Host.CreateEmptyApplicationBuilder(null); 85var builder = Host.CreateEmptyApplicationBuilder(null); 117var builder = Host.CreateEmptyApplicationBuilder(null); 149var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (2)
40protected override void RegisterComponent(HostApplicationBuilder builder, Action<MilvusClientSettings>? configure = null, string? key = null) 107var builder = Host.CreateEmptyApplicationBuilder(null);
MilvusClientPublicApiTests.cs (4)
27var builder = Host.CreateEmptyApplicationBuilder(null); 40var builder = Host.CreateEmptyApplicationBuilder(null); 66var builder = Host.CreateEmptyApplicationBuilder(null); 79var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.MongoDB.Driver.Tests (14)
AspireMongoDBDriverExtensionsTests.cs (9)
34var builder = CreateBuilder(connectionString); 80var builder = CreateBuilder(connectionString); 122var builder = CreateBuilder(DefaultConnectionString); 145var builder = CreateBuilder(DefaultConnectionString); 166var builder = CreateBuilder(DefaultConnectionString); 189var builder = CreateBuilder(DefaultConnectionString); 206var builder = Host.CreateEmptyApplicationBuilder(null); 232private static HostApplicationBuilder CreateBuilder(string connectionString) 234var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
75protected override void RegisterComponent(HostApplicationBuilder builder, Action<MongoDBSettings>? configure = null, string? key = null)
MongoDBDriverPublicApiTests.cs (4)
26var builder = Host.CreateEmptyApplicationBuilder(null); 38var builder = Host.CreateEmptyApplicationBuilder(null); 62var builder = Host.CreateEmptyApplicationBuilder(null); 74var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.MySqlConnector.Tests (5)
AspireMySqlConnectorExtensionsTests.cs (4)
29var builder = Host.CreateEmptyApplicationBuilder(null); 56var builder = Host.CreateEmptyApplicationBuilder(null); 86var builder = Host.CreateEmptyApplicationBuilder(null); 116var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
72protected override void RegisterComponent(HostApplicationBuilder builder, Action<MySqlConnectorSettings>? configure = null, string? key = null)
Aspire.NATS.Net.Tests (16)
AspireNatsClientExtensionsTests.cs (10)
36var builder = Host.CreateEmptyApplicationBuilder(null); 63var builder = Host.CreateEmptyApplicationBuilder(null); 92var builder = Host.CreateEmptyApplicationBuilder(null); 123var builder = Host.CreateEmptyApplicationBuilder(null); 156var builder = CreateBuilder(_connectionString); 183var builder = CreateBuilder(_connectionString); 213var builder = CreateBuilder(connectionString); 238var builder = Host.CreateEmptyApplicationBuilder(null); 264private static HostApplicationBuilder CreateBuilder(string connectionString) 266var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
39protected override void RegisterComponent(HostApplicationBuilder builder, Action<NatsClientSettings>? configure = null, string? key = null)
NatsClientPublicApiTests.cs (5)
30var builder = Host.CreateEmptyApplicationBuilder(null); 43var builder = Host.CreateEmptyApplicationBuilder(null); 69var builder = Host.CreateEmptyApplicationBuilder(null); 82var builder = Host.CreateEmptyApplicationBuilder(null); 118var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (25)
AspireEFPostgreSqlExtensionsTests.cs (10)
31var builder = Host.CreateEmptyApplicationBuilder(null); 47var builder = Host.CreateEmptyApplicationBuilder(null); 68var builder = Host.CreateEmptyApplicationBuilder(null); 88var builder = Host.CreateEmptyApplicationBuilder(null); 130var builder = Host.CreateEmptyApplicationBuilder(null); 171var builder = Host.CreateEmptyApplicationBuilder(null); 205var builder = Host.CreateEmptyApplicationBuilder(null); 242var builder = Host.CreateEmptyApplicationBuilder(null); 267var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 290var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
ConformanceTests.cs (1)
93protected override void RegisterComponent(HostApplicationBuilder builder, Action<NpgsqlEntityFrameworkCorePostgreSQLSettings>? configure = null, string? key = null)
EnrichNpgsqlTests.cs (14)
26protected override void RegisterComponent(HostApplicationBuilder builder, Action<NpgsqlEntityFrameworkCorePostgreSQLSettings>? configure = null, string? key = null) 35HostApplicationBuilder builder = Host.CreateEmptyApplicationBuilder(settings: null); 44HostApplicationBuilder builder = Host.CreateEmptyApplicationBuilder(settings: null); 59var builder = Host.CreateEmptyApplicationBuilder(null); 98var builder = Host.CreateEmptyApplicationBuilder(null); 119var builder = Host.CreateEmptyApplicationBuilder(null); 152var builder = Host.CreateEmptyApplicationBuilder(null); 196var builder = Host.CreateEmptyApplicationBuilder(null); 235var builder = Host.CreateEmptyApplicationBuilder(null); 253var builder = Host.CreateEmptyApplicationBuilder(null); 275var builder = Host.CreateEmptyApplicationBuilder(null); 304var builder = Host.CreateEmptyApplicationBuilder(null); 322var builder = Host.CreateEmptyApplicationBuilder(null); 351var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.Npgsql.Tests (6)
AspirePostgreSqlNpgsqlExtensionsTests.cs (5)
21var builder = Host.CreateEmptyApplicationBuilder(null); 48var builder = Host.CreateEmptyApplicationBuilder(null); 78var builder = Host.CreateEmptyApplicationBuilder(null); 110var builder = Host.CreateEmptyApplicationBuilder(null); 138var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
74protected override void RegisterComponent(HostApplicationBuilder builder, Action<NpgsqlSettings>? configure = null, string? key = null)
Aspire.OpenAI.Tests (23)
AspireOpenAIClientBuilderChatClientExtensionsTests.cs (7)
19var builder = Host.CreateEmptyApplicationBuilder(null); 51var builder = Host.CreateEmptyApplicationBuilder(null); 79var builder = Host.CreateEmptyApplicationBuilder(null); 107var builder = Host.CreateEmptyApplicationBuilder(null); 138var builder = Host.CreateEmptyApplicationBuilder(null); 171var builder = Host.CreateEmptyApplicationBuilder(null); 199var builder = Host.CreateEmptyApplicationBuilder(null);
AspireOpenAIClientBuilderEmbeddingGeneratorExtensionsTests.cs (7)
19var builder = Host.CreateEmptyApplicationBuilder(null); 51var builder = Host.CreateEmptyApplicationBuilder(null); 79var builder = Host.CreateEmptyApplicationBuilder(null); 107var builder = Host.CreateEmptyApplicationBuilder(null); 138var builder = Host.CreateEmptyApplicationBuilder(null); 171var builder = Host.CreateEmptyApplicationBuilder(null); 199var builder = Host.CreateEmptyApplicationBuilder(null);
AspireOpenAIExtensionsTests.cs (8)
22var builder = Host.CreateEmptyApplicationBuilder(null); 52var builder = Host.CreateEmptyApplicationBuilder(null); 76var builder = Host.CreateEmptyApplicationBuilder(null); 94var builder = Host.CreateEmptyApplicationBuilder(null); 113var builder = Host.CreateEmptyApplicationBuilder(null); 139var builder = Host.CreateEmptyApplicationBuilder(null); 161var builder = Host.CreateEmptyApplicationBuilder(null); 184var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
55protected override void RegisterComponent(HostApplicationBuilder builder, Action<OpenAISettings>? configure = null, string? key = null)
Aspire.Oracle.EntityFrameworkCore.Tests (28)
AspireOracleEFCoreDatabaseExtensionsTests.cs (12)
24var builder = Host.CreateEmptyApplicationBuilder(null); 40var builder = Host.CreateEmptyApplicationBuilder(null); 59var builder = Host.CreateEmptyApplicationBuilder(null); 79var builder = Host.CreateEmptyApplicationBuilder(null); 124var builder = Host.CreateEmptyApplicationBuilder(null); 164var builder = Host.CreateEmptyApplicationBuilder(null); 198var builder = Host.CreateEmptyApplicationBuilder(null); 236var builder = Host.CreateEmptyApplicationBuilder(null); 261var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 284var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production }); 306var builder = Host.CreateEmptyApplicationBuilder(null); 322var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (2)
75protected override void RegisterComponent(HostApplicationBuilder builder, Action<OracleEntityFrameworkCoreSettings>? configure = null, string? key = null) 148HostApplicationBuilder builder = CreateHostBuilder();
EnrichOracleDatabaseTests.cs (14)
26protected override void RegisterComponent(HostApplicationBuilder builder, Action<OracleEntityFrameworkCoreSettings>? configure = null, string? key = null) 35HostApplicationBuilder builder = Host.CreateEmptyApplicationBuilder(settings: null); 44HostApplicationBuilder builder = Host.CreateEmptyApplicationBuilder(settings: null); 59var builder = Host.CreateEmptyApplicationBuilder(null); 97var builder = Host.CreateEmptyApplicationBuilder(null); 117var builder = Host.CreateEmptyApplicationBuilder(null); 149var builder = Host.CreateEmptyApplicationBuilder(null); 192var builder = Host.CreateEmptyApplicationBuilder(null); 229var builder = Host.CreateEmptyApplicationBuilder(null); 246var builder = Host.CreateEmptyApplicationBuilder(null); 267var builder = Host.CreateEmptyApplicationBuilder(null); 295var builder = Host.CreateEmptyApplicationBuilder(null); 312var builder = Host.CreateEmptyApplicationBuilder(null); 340var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (24)
AspireEFMySqlExtensionsTests.cs (9)
35var builder = Host.CreateEmptyApplicationBuilder(null); 54var builder = Host.CreateEmptyApplicationBuilder(null); 75var builder = Host.CreateEmptyApplicationBuilder(null); 97var builder = Host.CreateEmptyApplicationBuilder(null); 140var builder = Host.CreateEmptyApplicationBuilder(null); 182var builder = Host.CreateEmptyApplicationBuilder(null); 217var builder = Host.CreateEmptyApplicationBuilder(null); 255var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Development }); 278var builder = Host.CreateEmptyApplicationBuilder(new HostApplicationBuilderSettings { EnvironmentName = Environments.Production });
ConformanceTests.cs (1)
90protected override void RegisterComponent(HostApplicationBuilder builder, Action<PomeloEntityFrameworkCoreMySqlSettings>? configure = null, string? key = null)
EnrichMySqlTests.cs (14)
30protected override void RegisterComponent(HostApplicationBuilder builder, Action<PomeloEntityFrameworkCoreMySqlSettings>? configure = null, string? key = null) 48HostApplicationBuilder builder = Host.CreateEmptyApplicationBuilder(settings: null); 57HostApplicationBuilder builder = Host.CreateEmptyApplicationBuilder(settings: null); 72var builder = Host.CreateEmptyApplicationBuilder(null); 110var builder = Host.CreateEmptyApplicationBuilder(null); 130var builder = Host.CreateEmptyApplicationBuilder(null); 162var builder = Host.CreateEmptyApplicationBuilder(null); 205var builder = Host.CreateEmptyApplicationBuilder(null); 242var builder = Host.CreateEmptyApplicationBuilder(null); 259var builder = Host.CreateEmptyApplicationBuilder(null); 280var builder = Host.CreateEmptyApplicationBuilder(null); 308var builder = Host.CreateEmptyApplicationBuilder(null); 325var builder = Host.CreateEmptyApplicationBuilder(null); 353var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.Qdrant.Client.Tests (6)
AspireQdrantClientExtensionsTest.cs (5)
36var builder = CreateBuilder(DefaultConnectionString); 63var builder = CreateBuilder(DefaultConnectionString); 90var builder = Host.CreateEmptyApplicationBuilder(null); 112private static HostApplicationBuilder CreateBuilder(string connectionString) 114var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
42protected override void RegisterComponent(HostApplicationBuilder builder, Action<QdrantClientSettings>? configure = null, string? key = null)
Aspire.RabbitMQ.Client.Tests (10)
AspireRabbitMQExtensionsTests.cs (5)
31var builder = Host.CreateEmptyApplicationBuilder(null); 59var builder = Host.CreateEmptyApplicationBuilder(null); 88var builder = Host.CreateEmptyApplicationBuilder(null); 142var builder = Host.CreateEmptyApplicationBuilder(null); 169var builder = Host.CreateEmptyApplicationBuilder(null);
AspireRabbitMQLoggingTests.cs (4)
36var builder = Host.CreateEmptyApplicationBuilder(null); 74var builder = Host.CreateEmptyApplicationBuilder(null); 103var builder = Host.CreateEmptyApplicationBuilder(null); 148var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
83protected override void RegisterComponent(HostApplicationBuilder builder, Action<RabbitMQClientSettings>? configure = null, string? key = null)
Aspire.Seq.Tests (3)
SeqEndpointCanBeConfigured.cs (3)
16var builder = Host.CreateEmptyApplicationBuilder(null); 30var builder = Host.CreateEmptyApplicationBuilder(null); 51var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.StackExchange.Redis.DistributedCaching.Tests (3)
AspireRedisDistributedCacheExtensionsTests.cs (1)
17var builder = Host.CreateEmptyApplicationBuilder(null);
DistributedCacheConformanceTests.cs (2)
23protected override void RegisterComponent(HostApplicationBuilder builder, Action<StackExchangeRedisSettings>? configure = null, string? key = null) 45var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.StackExchange.Redis.OutputCaching.Tests (3)
AspireRedisOutputCacheExtensionsTests.cs (1)
16var builder = Host.CreateEmptyApplicationBuilder(null);
OutputCacheConformanceTests.cs (2)
23protected override void RegisterComponent(HostApplicationBuilder builder, Action<StackExchangeRedisSettings>? configure = null, string? key = null) 45var builder = Host.CreateEmptyApplicationBuilder(null);
Aspire.StackExchange.Redis.Tests (11)
AspireRedisExtensionsTests.cs (10)
38var builder = Host.CreateEmptyApplicationBuilder(null); 60var builder = Host.CreateEmptyApplicationBuilder(null); 88var builder = Host.CreateEmptyApplicationBuilder(null); 119var builder = Host.CreateEmptyApplicationBuilder(null); 180var builder = Host.CreateEmptyApplicationBuilder(null); 209var builder = Host.CreateEmptyApplicationBuilder(null); 244var builder = Host.CreateEmptyApplicationBuilder(null); 268var builder = Host.CreateEmptyApplicationBuilder(null); 306var builder = Host.CreateEmptyApplicationBuilder(null); 343var builder = Host.CreateEmptyApplicationBuilder(null);
ConformanceTests.cs (1)
77protected override void RegisterComponent(HostApplicationBuilder builder, Action<StackExchangeRedisSettings>? configure = null, string? key = null)
Consumer (1)
Program.cs (1)
7var builder = Host.CreateApplicationBuilder(args);
DaprServiceC (1)
Program.cs (1)
7var builder = Host.CreateApplicationBuilder(args);
DatabaseMigration.MigrationService (1)
Program.cs (1)
7var builder = Host.CreateApplicationBuilder(args);
EventHubsConsumer (1)
Program.cs (1)
3var builder = Host.CreateApplicationBuilder(args);
Microsoft.AspNetCore (5)
BootstrapHostBuilder.cs (2)
14private readonly HostApplicationBuilder _builder; 20public BootstrapHostBuilder(HostApplicationBuilder builder)
ConfigureHostBuilder.cs (1)
122internal void ApplyServiceProviderFactory(HostApplicationBuilder hostApplicationBuilder)
WebApplicationBuilder.cs (2)
29private readonly HostApplicationBuilder _hostApplicationBuilder; 227private static DefaultServiceProviderFactory GetServiceProviderFactory(HostApplicationBuilder hostApplicationBuilder)
Microsoft.Extensions.Hosting (28)
Host.cs (14)
60/// Initializes a new instance of the <see cref="HostApplicationBuilder"/> class with pre-configured defaults. 63/// The following defaults are applied to the returned <see cref="HostApplicationBuilder"/>: 74/// <returns>The initialized <see cref="HostApplicationBuilder"/>.</returns> 75public static HostApplicationBuilder CreateApplicationBuilder() => new HostApplicationBuilder(); 78/// Initializes a new instance of the <see cref="HostApplicationBuilder"/> class with pre-configured defaults. 81/// The following defaults are applied to the returned <see cref="HostApplicationBuilder"/>: 95/// <returns>The initialized <see cref="HostApplicationBuilder"/>.</returns> 96public static HostApplicationBuilder CreateApplicationBuilder(string[]? args) => new HostApplicationBuilder(args); 99/// <param name="settings">Controls the initial configuration and other settings for constructing the <see cref="HostApplicationBuilder"/>.</param> 100public static HostApplicationBuilder CreateApplicationBuilder(HostApplicationBuilderSettings? settings) 104/// Initializes a new instance of the <see cref="HostApplicationBuilder"/> class with no pre-configured defaults. 106/// <param name="settings">Controls the initial configuration and other settings for constructing the <see cref="HostApplicationBuilder"/>.</param> 107/// <returns>The initialized <see cref="HostApplicationBuilder"/>.</returns> 108public static HostApplicationBuilder CreateEmptyApplicationBuilder(HostApplicationBuilderSettings? settings)
HostApplicationBuilder.cs (7)
36/// Initializes a new instance of the <see cref="HostApplicationBuilder"/> class with preconfigured defaults. 39/// The following defaults are applied to the returned <see cref="HostApplicationBuilder"/>: 58/// Initializes a new instance of the <see cref="HostApplicationBuilder"/> class with preconfigured defaults. 61/// The following defaults are applied to the returned <see cref="HostApplicationBuilder"/>: 81/// Initializes a new instance of the <see cref="HostApplicationBuilder"/>. 256private readonly HostApplicationBuilder _hostApplicationBuilder; 265public HostBuilderAdapter(HostApplicationBuilder hostApplicationBuilder)
HostApplicationBuilderSettings.cs (6)
11/// Settings for constructing an <see cref="HostApplicationBuilder"/>. 23/// Gets or sets a value that indicates whether the <see cref="HostApplicationBuilder"/> instance is configured with pre-configured defaults. 26/// <see langword="false"/> if the <see cref="HostApplicationBuilder"/> instance is configured with pre-configured defaults. 43/// Gets or sets the command-line arguments to add to the <see cref="HostApplicationBuilder.Configuration"/>. 48/// Gets or sets the initial configuration sources to be added to the <see cref="HostApplicationBuilder.Configuration"/>. These sources can influence 49/// the <see cref="HostApplicationBuilder.Environment"/> through the use of <see cref="HostDefaults"/> keys. Disposing the built
HostBuilder.cs (1)
185internal static DiagnosticListener LogHostBuilding(HostApplicationBuilder hostApplicationBuilder)
Microsoft.Extensions.Hosting.Systemd (1)
SystemdHostBuilderExtensions.cs (1)
64/// For example, <see cref="HostApplicationBuilder.Services"/> or the <see cref="IServiceCollection"/> passed to the
Microsoft.Extensions.Hosting.WindowsServices (2)
WindowsServiceLifetimeHostBuilderExtensions.cs (2)
71/// For example, <see cref="HostApplicationBuilder.Services"/> or the <see cref="IServiceCollection"/> passed to the 90/// For example, <see cref="HostApplicationBuilder.Services"/> or the <see cref="IServiceCollection"/> passed to the
OrderProcessor (1)
Program.cs (1)
3var builder = Host.CreateApplicationBuilder(args);
Producer (1)
Program.cs (1)
7var builder = Host.CreateApplicationBuilder(args);
Stress.TelemetryService (1)
Program.cs (1)
6var builder = Host.CreateApplicationBuilder(args);
TestingAppHost1.MyWorker (1)
Program.cs (1)
6var builder = Host.CreateApplicationBuilder(args);
TestProject.WorkerA (1)
Program.cs (1)
6var builder = Host.CreateApplicationBuilder(args);