21 references to AddConnectionString
Aspire.Hosting (4)
IDistributedApplicationBuilder.cs (4)
226
/// The following example shows the implementation of the <see cref="ParameterResourceBuilderExtensions.
AddConnectionString
(IDistributedApplicationBuilder, string, string?)"/>
230
/// The <see cref="ParameterResourceBuilderExtensions.
AddConnectionString
(IDistributedApplicationBuilder, string, string?)" /> method creates a new
231
/// <see cref="ParameterResource"/> in the application model. The return type of <see cref="ParameterResourceBuilderExtensions.
AddConnectionString
(IDistributedApplicationBuilder, string, string?)"/>
235
/// To work around this issue the <see cref="ParameterResourceBuilderExtensions.
AddConnectionString
(IDistributedApplicationBuilder, string, string?)"/> method wraps the
Aspire.Hosting.Azure.Tests (4)
AzureContainerAppsTests.cs (2)
282
var rawCs = builder.
AddConnectionString
("cs");
360
var rawCs = builder.
AddConnectionString
("cs");
AzureDeployerTests.cs (2)
1470
var connectionStringParam = builder.
AddConnectionString
("mydb");
1535
var connectionStringParam = builder.
AddConnectionString
("mydb");
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (2)
517
var cs = builder.
AddConnectionString
("cstest");
579
var cs = builder.
AddConnectionString
("dbConnection");
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
129
var externalResource = builder.
AddConnectionString
("connectionString");
Aspire.Hosting.Tests (7)
AddParameterTests.cs (1)
301
appBuilder.
AddConnectionString
("mycs");
Schema\SchemaTests.cs (1)
46
builder.
AddConnectionString
("foo");
WaitForTests.cs (1)
95
var cs = builder.
AddConnectionString
("cs");
WithReferenceTests.cs (4)
288
var missingResource = builder.
AddConnectionString
("missingresource");
310
var resource = builder.
AddConnectionString
("resource");
326
var resource = builder.
AddConnectionString
("resource");
342
var resource = builder.
AddConnectionString
("resource", "MY_ENV");
ParameterEndToEnd.AppHost (2)
AppHost.cs (2)
26
var parameterFromConnectionStringConfig = builder.
AddConnectionString
("parameterFromConnectionStringConfig");
29
var parameterFromConnectionStringConfigMissing = builder.
AddConnectionString
("parameterFromConnectionStringConfigMissing");
TestingAppHost1.AppHost (1)
Program.cs (1)
14
builder.
AddConnectionString
("cs");