130 references to WithReference
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 (29)
AzureBicepResourceTests.cs (3)
1103.WithReference(appInsights); 2765.WithReference(ai) 2766.WithReference(serviceBus);
AzureContainerAppsTests.cs (12)
748.WithReference(db) 749.WithReference(blob) 750.WithReference(pgdb) 1086.WithReference(db) 1087.WithReference(blob) 1088.WithReference(pgdb) 1732.WithReference(db) 2638.WithReference(cosmos); 2851.WithReference(redis); 3199.WithReference(pg); 3245.WithReference(pg); 3589.WithReference(db);
AzureCosmosDBExtensionsTests.cs (2)
198.WithReference(cosmos); 281.WithReference(cosmos);
AzurePostgresExtensionsTests.cs (1)
33.WithReference(postgres);
AzurePublisherTests.cs (1)
73.WithReference(cosmos);
AzureRedisExtensionsTests.cs (1)
35.WithReference(redis);
AzureResourcePreparerTests.cs (3)
59.WithReference(blobs); 145.WithReference(blobs); 149.WithReference(blobs);
AzureSqlExtensionsTests.cs (1)
35.WithReference(sql);
PublicApiTests\FunctionsPublicApiTests.cs (1)
75destination.WithReference(source);
RoleAssignmentTests.cs (4)
322.WithReference(redis); 362.WithReference(redis); 400.WithReference(redis); 437.WithReference(redis);
Aspire.Hosting.Docker.Tests (1)
DockerComposePublisherTests.cs (1)
50.WithReference(cs)
Aspire.Hosting.Kubernetes.Tests (1)
KubernetesPublisherTests.cs (1)
65.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)
1037.WithReference(redis) 1038.WithReference(redisNoPort); 1087.WithReference(redis) 1088.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);
AzureContainerApps.AppHost (3)
Program.cs (3)
43.WithReference(blobs) 45.WithReference(redis) 46.WithReference(cosmosDb)
AzureFunctionsEndToEnd.AppHost (3)
Program.cs (3)
31.WithReference(eventHub).WaitFor(eventHub) 36.WithReference(queue) 37.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)
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);
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)
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)
37.WithReference(db).WaitFor(db); 42.WithReference(db).WaitFor(db) 43.WithReference(azpgdb).WaitFor(azpgdb) 54.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)
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)
77IntegrationServiceABuilder = IntegrationServiceABuilder.WithReference(redis); 86IntegrationServiceABuilder = IntegrationServiceABuilder.WithReference(postgres);
TestShop.AppHost (5)
Program.cs (5)
31.WithReference(catalogDb); 52.WithReference(catalogDb) 62.WithReference(basketCache) 63.WithReference(messaging).WaitFor(messaging); 79.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);