1 implementation of AddCluster
Aspire.Hosting.Yarp (1)
ConfigurationBuilder\YarpConfigurationBuilder.cs (1)
54public YarpCluster AddCluster(string clusterName, object[] destinations)
6 references to AddCluster
Aspire.Hosting.Yarp (1)
ConfigurationBuilder\IYarpConfigurationBuilder.cs (1)
59return AddCluster(clusterName, [destination]);
Aspire.Hosting.Yarp.Tests (5)
YarpClusterTests.cs (5)
127var cluster = config.AddCluster("test-cluster", destinations); 155Assert.Throws<ArgumentNullException>(() => config.AddCluster("test-cluster", (object[])null!)); 167Assert.Throws<ArgumentException>(() => config.AddCluster("test-cluster", Array.Empty<object>())); 179var ex = Assert.Throws<ArgumentException>(() => config.AddCluster("test-cluster", new object[] { 123 })); 194var cluster = config.AddCluster("test-cluster", new object[] { "http://localhost:5000", uri, refExpr });