101 references to WithReference
Aspire.Hosting (1)
ParameterResourceBuilderExtensions.cs (1)
210/// 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 (7)
AzureBicepResourceTests.cs (3)
726.WithReference(appInsights); 2612.WithReference(ai) 2613.WithReference(serviceBus);
AzureContainerAppsTests.cs (4)
492.WithReference(db) 493.WithReference(blob) 494.WithReference(pgdb) 1111.WithReference(db)
Aspire.Hosting.Milvus.Tests (2)
AddMilvusTests.cs (2)
107.WithReference(milvus); 118.WithReference(milvus);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
119.WithReference(externalResource);
Aspire.Hosting.Tests (7)
DistributedApplicationTests.cs (2)
802.WithReference(redis) 803.WithReference(redisNoPort);
ExpressionResolverTests.cs (1)
59.WithReference(target);
WithReferenceTests.cs (4)
167.WithReference(missingResource); 188.WithReference(resource); 204.WithReference(resource); 220.WithReference(resource);
AzureContainerApps.AppHost (3)
Program.cs (3)
36.WithReference(blobs) 37.WithReference(redis) 38.WithReference(cosmosDb)
AzureFunctionsEndToEnd.AppHost (3)
Program.cs (3)
22.WithReference(eventHubs) 26.WithReference(queue) 27.WithReference(blob)
AzureSearch.AppHost (1)
Program.cs (1)
10.WithReference(azureSearch);
AzureStorageEndToEnd.AppHost (2)
Program.cs (2)
16.WithReference(blobs).WaitFor(blobs) 17.WithReference(queues).WaitFor(queues);
BicepSample.AppHost (13)
Program.cs (13)
64.WithReference(sqlServer) 65.WithReference(pg) 66.WithReference(cosmosDb) 67.WithReference(blobs) 68.WithReference(tables) 69.WithReference(queues) 70.WithReference(kv) 71.WithReference(appConfig) 72.WithReference(appInsights) 73.WithReference(redis) 74.WithReference(serviceBus) 75.WithReference(signalr) 76.WithReference(webpubsub)
CdkSample.AppHost (12)
Program.cs (12)
103.WithReference(signalr) 104.WithReference(blobs) 105.WithReference(sqldb) 106.WithReference(keyvault) 107.WithReference(cache) 108.WithReference(cosmosdb) 109.WithReference(pgsqldb) 110.WithReference(pgsql2) 111.WithReference(sb) 112.WithReference(appConfig) 113.WithReference(search) 114.WithReference(appInsights);
CosmosEndToEnd.AppHost (1)
Program.cs (1)
12.WithReference(db).WaitFor(db);
DatabaseMigration.AppHost (2)
Program.cs (2)
10.WithReference(db1); 13.WithReference(db1);
Elasticsearch.AppHost (1)
Program.cs (1)
10.WithReference(elasticsearch)
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)
12.WithReference(db).WaitFor(db);
MySqlDb.AppHost (1)
Program.cs (1)
15.WithReference(catalogDb).WaitFor(catalogDb);
Nats.AppHost (2)
Program.cs (2)
8.WithReference(nats) 12.WithReference(nats)
OpenAIEndToEnd.AppHost (1)
Program.cs (1)
13.WithReference(openai)
OracleEndToEnd.AppHost (1)
Program.cs (1)
11.WithReference(pdb)
ParameterEndToEnd.AppHost (1)
Program.cs (1)
27.WithReference(db);
PostgresEndToEnd.AppHost (11)
Program.cs (11)
28.WithReference(db1) 29.WithReference(db2) 30.WithReference(db3) 31.WithReference(db4) 32.WithReference(db5) 33.WithReference(db6) 34.WithReference(db7) 35.WithReference(db8) 36.WithReference(db9) 37.WithReference(db10) 38.WithReference(db11);
ProxylessEndToEnd.AppHost (2)
Program.cs (2)
17.WithReference(redis); 21.WithReference(redis);
Redis.AppHost (3)
Program.cs (3)
15.WithReference(redis).WaitFor(redis) 16.WithReference(garnet).WaitFor(garnet) 17.WithReference(valkey).WaitFor(valkey);
Seq.AppHost (1)
Program.cs (1)
10.WithReference(seq);
SignalR.AppHost (1)
Program.cs (1)
7.WithReference(signalr);
SqlServerEndToEnd.AppHost (4)
Program.cs (4)
17.WithReference(db1).WaitFor(sql1) 18.WithReference(db2).WaitFor(sql2); 22.WithReference(db1).WaitFor(db1) 23.WithReference(db2).WaitFor(db2)
TestProject.AppHost (2)
TestProgram.cs (2)
75IntegrationServiceABuilder = IntegrationServiceABuilder.WithReference(redis); 84IntegrationServiceABuilder = IntegrationServiceABuilder.WithReference(postgres);
TestShop.AppHost (5)
Program.cs (5)
23.WithReference(catalogDb); 26.WithReference(catalogDb) 35.WithReference(basketCache) 36.WithReference(messaging).WaitFor(messaging); 44.WithReference(messaging).WaitFor(messaging);
WaitForSandbox.AppHost (2)
Program.cs (2)
18.WithReference(db).WaitFor(db); 23.WithReference(db).WaitFor(db)
WebPubSub.AppHost (1)
Program.cs (1)
7.WithReference(wps);