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