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)
73return AddCluster(clusterName, [destination]); 130return builder.AddCluster(clusterName, destinations);
Aspire.Hosting.Yarp.Tests (5)
YarpClusterTests.cs (5)
157var cluster = config.AddCluster("test-cluster", destinations); 185Assert.Throws<ArgumentNullException>(() => config.AddCluster("test-cluster", (object[])null!)); 197Assert.Throws<ArgumentException>(() => config.AddCluster("test-cluster", Array.Empty<object>())); 209var ex = Assert.Throws<ArgumentException>(() => config.AddCluster("test-cluster", new object[] { 123 })); 224var cluster = config.AddCluster("test-cluster", new object[] { "http://localhost:5000", uri, refExpr });