37 references to GetConnectionString
Aspire.Azure.AI.OpenAI (3)
AspireConfigurableOpenAIExtensions.cs (2)
36if (builder.Configuration.GetConnectionString(connectionName) is string connectionString) 66if (builder.Configuration.GetConnectionString(name) is string connectionString)
src\Components\Common\AzureComponent.cs (1)
70builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Azure.Data.Tables (1)
src\Components\Common\AzureComponent.cs (1)
70builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Azure.Messaging.EventHubs (1)
src\Components\Common\AzureComponent.cs (1)
70builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Azure.Messaging.ServiceBus (1)
src\Components\Common\AzureComponent.cs (1)
70builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Azure.Messaging.WebPubSub (1)
src\Components\Common\AzureComponent.cs (1)
70builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Azure.Search.Documents (1)
src\Components\Common\AzureComponent.cs (1)
70builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Azure.Security.KeyVault (2)
AspireKeyVaultExtensions.cs (1)
99if (configuration.GetConnectionString(connectionName) is string connectionString)
src\Components\Common\AzureComponent.cs (1)
70builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Azure.Storage.Blobs (1)
src\Components\Common\AzureComponent.cs (1)
70builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Azure.Storage.Queues (1)
src\Components\Common\AzureComponent.cs (1)
70builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Confluent.Kafka (2)
AspireKafkaConsumerExtensions.cs (1)
223if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
AspireKafkaProducerExtensions.cs (1)
223if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Elastic.Clients.Elasticsearch (1)
AspireElasticClientsElasticsearchExtensions.cs (1)
82if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Hosting (1)
ParameterResourceBuilderExtensions.cs (1)
224return builder.Configuration.GetConnectionString(name) ?? throw new DistributedApplicationException($"Connection string parameter resource could not be used because connection string '{name}' is missing.");
Aspire.Microsoft.Azure.Cosmos (1)
AspireMicrosoftAzureCosmosExtensions.cs (1)
74if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Microsoft.Data.SqlClient (1)
AspireSqlServerSqlClientExtensions.cs (1)
61if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
AspireAzureEFCoreCosmosExtensions.cs (1)
54if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
AspireSqlServerEFCoreSqlClientExtensions.cs (1)
52if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Milvus.Client (1)
AspireMilvusExtensions.cs (1)
74if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.MongoDB.Driver (1)
AspireMongoDBDriverExtensions.cs (1)
213if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.MySqlConnector (1)
AspireMySqlConnectorExtensions.cs (1)
64if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.NATS.Net (1)
AspireNatsClientExtensions.cs (1)
71if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Npgsql (1)
AspirePostgreSqlNpgsqlExtensions.cs (1)
65if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
AspireEFPostgreSqlExtensions.cs (1)
60if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.OpenAI (1)
AspireOpenAIExtensions.cs (1)
78if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Oracle.EntityFrameworkCore (1)
AspireOracleEFCoreExtensions.cs (1)
53if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
AspireEFMySqlExtensions.cs (1)
64if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Qdrant.Client (1)
AspireQdrantExtensions.cs (1)
69if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.RabbitMQ.Client (1)
AspireRabbitMQExtensions.cs (1)
81if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.Seq (1)
AspireSeqExtensions.cs (1)
47if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
Aspire.StackExchange.Redis (1)
AspireRedisExtensions.cs (1)
77if (builder.Configuration.GetConnectionString(connectionName) is string connectionString)
CdkSample.ApiService (1)
Program.cs (1)
31clients.AddConfigurationClient(new Uri(builder.Configuration.GetConnectionString("appConfig")!));
IdentitySample.DefaultUI (1)
Startup.cs (1)
40.UseSqlServer(Configuration.GetConnectionString("DefaultConnection"),
IdentitySample.Mvc (1)
Startup.cs (1)
33.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
PostgresEndToEnd.ApiService (1)
Program.cs (1)
18var connectionString = builder.Configuration.GetConnectionString("db8");