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