105 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)
1000.WithReference(appInsights); 2830.WithReference(ai) 2831.WithReference(serviceBus);
AzureContainerAppsTests.cs (4)
717.WithReference(db) 718.WithReference(blob) 719.WithReference(pgdb) 1322.WithReference(db)
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 (9)
DistributedApplicationTests.cs (4)
862.WithReference(redis) 863.WithReference(redisNoPort); 913.WithReference(redis) 914.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)
26.WithReference(eventHubs).WaitFor(eventHubs) 31.WithReference(queue) 32.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)
102.WithReference(signalr) 103.WithReference(blobs) 104.WithReference(sqldb) 105.WithReference(keyvault) 106.WithReference(cache) 107.WithReference(cosmosdb) 108.WithReference(pgsqldb) 109.WithReference(pgsql2) 110.WithReference(sb) 111.WithReference(appConfig) 112.WithReference(search) 113.WithReference(appInsights);
CosmosEndToEnd.AppHost (1)
Program.cs (1)
14.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)
36.WithReference(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);
ServiceBus.AppHost (1)
Program.cs (1)
45.WithReference(serviceBus).WaitFor(serviceBus);
SignalR.AppHost (2)
Program.cs (2)
8.WithReference(defaultSignalr); 17.WithReference(serverlessSignalr)
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) 36.WithReference(basketCache) 37.WithReference(messaging).WaitFor(messaging); 45.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);