208 references to WithReference
AppHost1 (2)
Program.cs (2)
16.WithReference(todosDb).WaitFor(todosDb); 20.WithReference(todosDb).WaitFor(todosDb);
Aspire.Hosting (1)
ParameterResourceBuilderExtensions.cs (1)
236/// Adds a parameter to the distributed application but wrapped in a resource with a connection string for use with <see cref="ResourceBuilderExtensions.WithReference{TDestination}(IResourceBuilder{TDestination}, IResourceBuilder{IResourceWithConnectionString}, string?, bool)"/>
Aspire.Hosting.Azure.Tests (39)
AzureApplicationInsightsExtensionsTests.cs (1)
93.WithReference(appInsights);
AzureAppServiceTests.cs (1)
93.WithReference(db)
AzureContainerAppsTests.cs (11)
296.WithReference(db) 297.WithReference(blob) 298.WithReference(pgdb) 374.WithReference(db) 375.WithReference(blob) 376.WithReference(pgdb) 733.WithReference(db) 1034.WithReference(cosmos); 1075.WithReference(redis); 1258.WithReference(pg); 1288.WithReference(db);
AzureCosmosDBExtensionsTests.cs (2)
199.WithReference(cosmos); 252.WithReference(cosmos);
AzureDeployerTests.cs (3)
1143.WithReference(cache) 1144.WithReference(azpg) 1145.WithReference(cosmos);
AzureEnvironmentResourceTests.cs (2)
114.WithReference(cosmos); 155.WithReference(cosmos);
AzureManagedRedisExtensionsTests.cs (1)
34.WithReference(redis);
AzurePostgresExtensionsTests.cs (1)
32.WithReference(postgres);
AzureRedisExtensionsTests.cs (1)
36.WithReference(redis);
AzureResourcePreparerTests.cs (4)
58.WithReference(blobs); 100.WithReference(blobs); 104.WithReference(blobs); 148.WithReference(db);
AzureSqlExtensionsTests.cs (1)
40.WithReference(sql);
PublicApiTests\FunctionsPublicApiTests.cs (1)
74destination.WithReference(source);
RoleAssignmentTests.cs (10)
148.WithReference(redis); 162.WithReference(redis); 175.WithReference(redis); 188.WithReference(redis); 202.WithReference(sql); 219.WithReference(kusto); 233.WithReference(keyvault); 261.WithReference(keyvault) 262.WithReference(sb); 292.WithReference(keyvault);
Aspire.Hosting.Docker.Tests (3)
DockerComposePublisherTests.cs (3)
78.WithReference(cs) 522.WithReference(cs); 585.WithReference(cs);
Aspire.Hosting.Kubernetes.Tests (3)
KubernetesPublisherTests.cs (3)
35.WithReference(cs) 191.WithReference(cs) 192.WithReference(csPlain);
Aspire.Hosting.Milvus.Tests (2)
AddMilvusTests.cs (2)
102.WithReference(milvus); 113.WithReference(milvus);
Aspire.Hosting.MongoDB.Tests (4)
ConnectionPropertiesTests.cs (4)
100.WithReference(server) 101.WithReference(database) 102.WithReference(serverWithParameters) 103.WithReference(databaseWithParameters);
Aspire.Hosting.MySql.Tests (2)
ConnectionPropertiesTests.cs (2)
89.WithReference(server) 90.WithReference(database);
Aspire.Hosting.Nats.Tests (2)
ConnectionPropertiesTests.cs (2)
63.WithReference(server) 64.WithReference(serverWithParameters);
Aspire.Hosting.Oracle.Tests (2)
ConnectionPropertiesTests.cs (2)
85.WithReference(server) 86.WithReference(database);
Aspire.Hosting.Orleans (1)
ProviderConfiguration.cs (1)
47resourceBuilder.WithReference(resource);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
133.WithReference(externalResource);
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
156ResourceBuilderExtensions.WithReference(builder, qdrantResource, connectionName);
Aspire.Hosting.RabbitMQ.Tests (2)
ConnectionPropertiesTests.cs (2)
63.WithReference(server) 64.WithReference(serverWithParameters);
Aspire.Hosting.Tests (38)
DistributedApplicationTests.cs (4)
1478.WithReference(redis) 1479.WithReference(redisNoPort); 1546.WithReference(redis) 1547.WithReference(redisNoPort);
ExpressionResolverTests.cs (2)
142.WithReference(target); 226.WithReference(connectionStringResource)
Schema\SchemaTests.cs (1)
40builder.AddRedis("redis2").WithReference(resourceWithFormatterParameter);
WaitForTests.cs (12)
159.WithReference(dependency) 207.WithReference(dependency) 318.WithReference(dependency) 352.WithReference(dependency) 399.WithReference(dependency) 437.WithReference(dependency) 484.WithReference(dependency) 539.WithReference(dependency) 593.WithReference(dependency) 644.WithReference(dependency) 697.WithReference(dependency) 746.WithReference(dependency)
WithReferenceTests.cs (19)
254var projectB = builder.AddProject<ProjectB>("projectb").WithReference(resource, optional: false); 274.WithReference(resource, optional: true); 290.WithReference(missingResource); 312.WithReference(resource); 328.WithReference(resource); 344.WithReference(resource); 363.WithReference(resource); 393.WithReference(resource); 445.WithReference(resource); 467.WithReference(resource, connectionName: "bob"); 522.WithReference(resource); 547.WithReference(resource); 572.WithReference(resource); 598.WithReference(resource); 624.WithReference(resource); 651.WithReference(resource); 680.WithReference(resource); 704.WithReference(resource, connectionName: "bob"); 726.WithReference(resource);
AspireWithNode.AppHost (1)
AppHost.cs (1)
19.WithReference(cache)
AzureAIFoundryEndToEnd.AppHost (1)
Program.cs (1)
19.WithReference(chat)
AzureAppConfiguration.AppHost (1)
AppHost.cs (1)
14.WithReference(appConfig);
AzureAppService.AppHost (2)
Program.cs (2)
33.WithReference(blobs) 35.WithReference(cosmosDb)
AzureContainerApps.AppHost (3)
Program.cs (3)
43.WithReference(blobs) 45.WithReference(redis) 46.WithReference(cosmosDb)
AzureFunctionsEndToEnd.AppHost (4)
Program.cs (4)
31.WithReference(myBlobContainer).WaitFor(myBlobContainer) 37.WithReference(eventHub).WaitFor(eventHub) 42.WithReference(queue) 43.WithReference(blob)
AzureKusto.AppHost (1)
Program.cs (1)
11.WithReference(db)
AzureOpenAIEndToEnd.AppHost (1)
Program.cs (1)
11.WithReference(chat);
AzureSearch.AppHost (1)
Program.cs (1)
10.WithReference(azureSearch);
AzureStorageEndToEnd.AppHost (3)
Program.cs (3)
26.WithReference(blobs).WaitFor(blobs) 27.WithReference(blobContainer2).WaitFor(blobContainer2) 28.WithReference(myqueue).WaitFor(myqueue);
BicepSample.AppHost (13)
Program.cs (13)
69.WithReference(sqlServer) 70.WithReference(pg) 71.WithReference(cosmosDb) 72.WithReference(blobs) 73.WithReference(tables) 74.WithReference(queues) 75.WithReference(kv) 76.WithReference(appConfig) 77.WithReference(appInsights) 78.WithReference(redis) 79.WithReference(serviceBus) 80.WithReference(signalr) 81.WithReference(webpubsub)
CdkSample.AppHost (12)
Program.cs (12)
110.WithReference(signalr) 111.WithReference(blobs) 112.WithReference(sqldb) 113.WithReference(keyvault) 114.WithReference(cache) 115.WithReference(cosmosdb) 116.WithReference(pgsqldb) 117.WithReference(pgsql2) 118.WithReference(sb) 119.WithReference(appConfig) 120.WithReference(search) 121.WithReference(appInsights);
CosmosEndToEnd.AppHost (4)
Program.cs (4)
17.WithReference(db).WaitFor(db) 18.WithReference(users).WaitFor(users) 19.WithReference(entries).WaitFor(entries) 20.WithReference(userToDo).WaitFor(userToDo);
DatabaseMigration.AppHost (2)
Program.cs (2)
19.WithReference(database); 22.WithReference(database);
Deployers.AppHost (6)
AppHost.cs (6)
42.WithReference(eventHub).WaitFor(eventHub) 43.WithReference(serviceBus).WaitFor(serviceBus) 44.WithReference(cosmosDb).WaitFor(cosmosDb) 45.WithReference(queue) 46.WithReference(blob); 70.WithReference(myBlobContainer).WaitFor(myBlobContainer)
EventHubs.AppHost (3)
Program.cs (3)
13.WithReference(eventHub).WaitFor(eventHub) 14.WithReference(blob); 18.WithReference(eventHub).WaitFor(eventHub);
GitHubModelsEndToEnd.AppHost (1)
Program.cs (1)
13.WithReference(chat).WaitFor(chat);
KafkaBasic.AppHost (2)
Program.cs (2)
10.WithReference(kafka).WaitFor(kafka) 14.WithReference(kafka).WaitFor(kafka)
MilvusPlayground.AppHost (1)
Program.cs (1)
8.WithReference(milvusdb).WaitFor(milvusdb);
Mongo.AppHost (1)
Program.cs (1)
35.WithReference(db)
MySqlDb.AppHost (3)
Program.cs (3)
32.WithReference(catalogDb).WaitFor(catalogDb) 33.WithReference(myTestDb).WaitFor(myTestDb) 34.WithReference(myTestDb2).WaitFor(myTestDb2);
Nats.AppHost (2)
Program.cs (2)
8.WithReference(nats) 12.WithReference(nats)
OpenAIEndToEnd.AppHost (1)
Program.cs (1)
10.WithReference(chat).WaitFor(chat);
OracleEndToEnd.AppHost (1)
Program.cs (1)
11.WithReference(pdb)
ParameterEndToEnd.AppHost (2)
AppHost.cs (2)
59.WithReference(cs) 60.WithReference(db);
PostgresEndToEnd.AppHost (4)
Program.cs (4)
13.WithReference(db1).WaitFor(db1); 19.WithReference(db1).WaitFor(db1); 24.WithReference(db1) 34.WithReference(db1).WaitFor(db1)
ProxylessEndToEnd.AppHost (2)
Program.cs (2)
17.WithReference(redis); 21.WithReference(redis);
Publishers.AppHost (4)
Program.cs (4)
36.WithReference(db).WaitFor(db); 41.WithReference(db).WaitFor(db) 42.WithReference(azpgdb).WaitFor(azpgdb) 53.WithReference(sqlDb)
Redis.AppHost (3)
Program.cs (3)
16.WithReference(redis).WaitFor(redis) 17.WithReference(garnet).WaitFor(garnet) 18.WithReference(valkey).WaitFor(valkey);
Seq.AppHost (1)
Program.cs (1)
10.WithReference(seq);
ServiceBus.AppHost (2)
Program.cs (2)
40.WithReference(queue).WaitFor(queue) 41.WithReference(subscription).WaitFor(subscription);
SignalR.AppHost (2)
Program.cs (2)
10.WithReference(defaultSignalr); 19.WithReference(serverlessSignalr)
SqlServerEndToEnd.AppHost (4)
Program.cs (4)
15.WithReference(db1).WaitFor(sql1) 16.WithReference(db2).WaitFor(sql2); 20.WithReference(db1).WaitFor(db1) 21.WithReference(db2).WaitFor(db2)
TestProject.AppHost (2)
TestProgram.cs (2)
87IntegrationServiceABuilder = IntegrationServiceABuilder.WithReference(redis); 96IntegrationServiceABuilder = IntegrationServiceABuilder.WithReference(postgres);
TestShop.AppHost (5)
AppHost.cs (5)
32.WithReference(catalogDb); 53.WithReference(catalogDb) 77.WithReference(basketCache) 78.WithReference(messaging).WaitFor(messaging); 93.WithReference(messaging).WaitFor(messaging);
WaitForSandbox.AppHost (2)
Program.cs (2)
18.WithReference(db).WaitFor(db); 23.WithReference(db).WaitFor(db)
WebPubSub.AppHost (2)
Program.cs (2)
8.WithReference(chat) 9.WithReference(notification);