234 references to WithReference
AppHost1 (2)
Program.cs (2)
16.WithReference(todosDb).WaitFor(todosDb); 20.WithReference(todosDb).WaitFor(todosDb);
Aspire.Hosting (1)
ParameterResourceBuilderExtensions.cs (1)
238/// 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 (46)
AzureApplicationInsightsExtensionsTests.cs (1)
93.WithReference(appInsights);
AzureAppServiceTests.cs (3)
95.WithReference(cs) 136.WithReference(cs) 169.WithReference(db)
AzureContainerAppsTests.cs (12)
297.WithReference(db) 298.WithReference(blob) 299.WithReference(pgdb) 375.WithReference(db) 376.WithReference(blob) 377.WithReference(pgdb) 734.WithReference(db) 1035.WithReference(cosmos); 1076.WithReference(redis); 1314.WithReference(pg); 1345.WithReference(pg); 1401.WithReference(db);
AzureCosmosDBExtensionsTests.cs (2)
201.WithReference(cosmos); 253.WithReference(cosmos);
AzureDeployerTests.cs (3)
1155.WithReference(cache) 1156.WithReference(azpg) 1157.WithReference(cosmos);
AzureEnvironmentResourceTests.cs (2)
115.WithReference(cosmos); 156.WithReference(cosmos);
AzureManagedRedisExtensionsTests.cs (1)
34.WithReference(redis);
AzurePostgresExtensionsTests.cs (1)
34.WithReference(postgres);
AzureRedisExtensionsTests.cs (1)
36.WithReference(redis);
AzureResourcePreparerTests.cs (7)
58.WithReference(blobs); 100.WithReference(blobs); 104.WithReference(blobs); 148.WithReference(db); 279.WithReference(blobs); 311.WithReference(blobs) 316.WithReference(blobs)
AzureSqlExtensionsTests.cs (1)
40.WithReference(sql);
PublicApiTests\FunctionsPublicApiTests.cs (1)
74destination.WithReference(source);
RoleAssignmentTests.cs (11)
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); 315.WithReference(cache)
Aspire.Hosting.Docker.Tests (3)
DockerComposePublisherTests.cs (3)
78.WithReference(cs) 583.WithReference(cs); 646.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)
106.WithReference(milvus); 117.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)
159ResourceBuilderExtensions.WithReference(builder, qdrantResource, connectionName);
Aspire.Hosting.RabbitMQ.Tests (2)
ConnectionPropertiesTests.cs (2)
63.WithReference(server) 64.WithReference(serverWithParameters);
Aspire.Hosting.Tests (53)
DistributedApplicationTests.cs (4)
1625.WithReference(redis) 1626.WithReference(redisNoPort); 1694.WithReference(redis) 1695.WithReference(redisNoPort);
ExpressionResolverTests.cs (2)
138.WithReference(target); 230.WithReference(connectionStringResource)
ResourceDependencyTests.cs (15)
18.WithReference(redis); 69.WithReference(db); 88.WithReference(redirect); 361.WithReference(redis); 421var c = builder.AddContainer("c", "alpine").WithReference(d); 423var a = builder.AddContainer("a", "alpine").WithReference(b); 472.WithReference(c); 492.WithReference(c); 512.WithReference(e); 538var a = builder.AddContainer("a", "alpine").WithReference(db); 583.WithReference(c); 669.WithReference(c); 749.WithReference(c); 756.WithReference(f); 862.WithReference(c);
Schema\SchemaTests.cs (1)
41builder.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)
255var projectB = builder.AddProject<ProjectB>("projectb").WithReference(resource, optional: false); 275.WithReference(resource, optional: true); 291.WithReference(missingResource); 313.WithReference(resource); 329.WithReference(resource); 345.WithReference(resource); 364.WithReference(resource); 394.WithReference(resource); 446.WithReference(resource); 468.WithReference(resource, connectionName: "bob"); 523.WithReference(resource); 548.WithReference(resource); 573.WithReference(resource); 599.WithReference(resource); 625.WithReference(resource); 652.WithReference(resource); 681.WithReference(resource); 705.WithReference(resource, connectionName: "bob"); 727.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)
AzureDataLakeEndToEnd.AppHost (2)
AppHost.cs (2)
14api.WithReference(dataLake).WaitFor(dataLake).WithReference(fileSystem).WaitFor(fileSystem);
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);
AzureVirtualNetworkEndToEnd.AppHost (2)
Program.cs (2)
52.WithReference(mycontainer).WaitFor(mycontainer) 53.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)
16.WithReference(db1).WaitFor(db1); 22.WithReference(db1).WaitFor(db1); 27.WithReference(db1) 37.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);