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