139 references to WithReference
AppHost1 (2)
Program.cs (2)
16.WithReference(todosDb).WaitFor(todosDb); 20.WithReference(todosDb).WaitFor(todosDb);
Aspire.Hosting (1)
ParameterResourceBuilderExtensions.cs (1)
176/// 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 (31)
AzureAppServiceTests.cs (1)
88.WithReference(db);
AzureBicepResourceTests.cs (3)
713.WithReference(appInsights); 1808.WithReference(ai) 1809.WithReference(serviceBus);
AzureContainerAppsTests.cs (12)
300.WithReference(db) 301.WithReference(blob) 302.WithReference(pgdb) 378.WithReference(db) 379.WithReference(blob) 380.WithReference(pgdb) 686.WithReference(db) 1000.WithReference(cosmos); 1042.WithReference(redis); 1221.WithReference(pg); 1267.WithReference(pg); 1298.WithReference(db);
AzureCosmosDBExtensionsTests.cs (2)
197.WithReference(cosmos); 250.WithReference(cosmos);
AzureEnvironmentResourceTests.cs (2)
118.WithReference(cosmos); 160.WithReference(cosmos);
AzurePostgresExtensionsTests.cs (1)
32.WithReference(postgres);
AzureRedisExtensionsTests.cs (1)
34.WithReference(redis);
AzureResourcePreparerTests.cs (3)
58.WithReference(blobs); 100.WithReference(blobs); 104.WithReference(blobs);
AzureSqlExtensionsTests.cs (1)
40.WithReference(sql);
PublicApiTests\FunctionsPublicApiTests.cs (1)
74destination.WithReference(source);
RoleAssignmentTests.cs (4)
135.WithReference(redis); 148.WithReference(redis); 161.WithReference(redis); 174.WithReference(redis);
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
57.WithReference(cs)
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
33.WithReference(cs)
Aspire.Hosting.Milvus.Tests (2)
AddMilvusTests.cs (2)
103.WithReference(milvus); 114.WithReference(milvus);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
124.WithReference(externalResource);
Aspire.Hosting.Tests (12)
DistributedApplicationTests.cs (4)
1066.WithReference(redis) 1067.WithReference(redisNoPort); 1116.WithReference(redis) 1117.WithReference(redisNoPort);
ExpressionResolverTests.cs (2)
104.WithReference(target); 181.WithReference(connectionStringResource)
WithReferenceTests.cs (6)
191.WithReference(missingResource); 212.WithReference(resource); 228.WithReference(resource); 244.WithReference(resource); 287.WithReference(resource); 333.WithReference(resource);
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)
25.WithReference(myBlobContainer).WaitFor(myBlobContainer) 34.WithReference(eventHub).WaitFor(eventHub) 39.WithReference(queue) 40.WithReference(blob)
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(queues).WaitFor(queues);
BicepSample.AppHost (13)
Program.cs (13)
70.WithReference(sqlServer) 71.WithReference(pg) 72.WithReference(cosmosDb) 73.WithReference(blobs) 74.WithReference(tables) 75.WithReference(queues) 76.WithReference(kv) 77.WithReference(appConfig) 78.WithReference(appInsights) 79.WithReference(redis) 80.WithReference(serviceBus) 81.WithReference(signalr) 82.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 (2)
Program.cs (2)
17.WithReference(db).WaitFor(db) 18.WithReference(entries).WaitFor(entries);
DatabaseMigration.AppHost (2)
Program.cs (2)
10.WithReference(db1); 13.WithReference(db1);
EventHubs.AppHost (3)
Program.cs (3)
13.WithReference(eventHub).WaitFor(eventHub) 14.WithReference(blob); 18.WithReference(eventHub).WaitFor(eventHub);
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);
Mongo.AppHost (1)
Program.cs (1)
36.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)
11.WithReference(chat);
OracleEndToEnd.AppHost (1)
Program.cs (1)
11.WithReference(pdb)
ParameterEndToEnd.AppHost (2)
Program.cs (2)
29.WithReference(cs) 30.WithReference(db);
PostgresEndToEnd.AppHost (1)
Program.cs (1)
12.WithReference(db1).WaitFor(db1);
ProxylessEndToEnd.AppHost (2)
Program.cs (2)
17.WithReference(redis); 21.WithReference(redis);
Publishers.AppHost (4)
Program.cs (4)
30.WithReference(db).WaitFor(db); 35.WithReference(db).WaitFor(db) 36.WithReference(azpgdb).WaitFor(azpgdb) 47.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)
78IntegrationServiceABuilder = IntegrationServiceABuilder.WithReference(redis); 87IntegrationServiceABuilder = IntegrationServiceABuilder.WithReference(postgres);
TestShop.AppHost (5)
Program.cs (5)
31.WithReference(catalogDb); 52.WithReference(catalogDb) 62.WithReference(basketCache) 63.WithReference(messaging).WaitFor(messaging); 78.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);