3 writes to ClusterConfig
Aspire.Hosting.Yarp (3)
ConfigurationBuilder\YarpCluster.cs (3)
20ClusterConfig = config; 74ClusterConfig = new() 88ClusterConfig = configure(ClusterConfig);
10 references to ClusterConfig
Aspire.Hosting.Yarp (6)
ConfigurationBuilder\YarpCluster.cs (1)
88ClusterConfig = configure(ClusterConfig);
ConfigurationBuilder\YarpRoute.cs (1)
25ClusterId = cluster.ClusterConfig.ClusterId,
YarpEnvConfigGenerator.cs (4)
27FlattenToEnvVars(environmentVariables, cluster.ClusterConfig, $"{Prefix}CLUSTERS__{cluster.ClusterConfig.ClusterId}"); 31environmentVariables[$"{Prefix}CLUSTERS__{cluster.ClusterConfig.ClusterId}__DESTINATIONS__destination{i + 1}__ADDRESS"] = targets[i]; 35environmentVariables.Remove($"{Prefix}CLUSTERS__{cluster.ClusterConfig.ClusterId}__CLUSTERID");
Aspire.Hosting.Yarp.Tests (4)
YarpClusterTests.cs (4)
264Assert.Equal(cluster.ClusterConfig.ClusterId, route.RouteConfig.ClusterId); 265Assert.Equal($"cluster_{YarpConfigurationBuilderHelpers.CreateSyntheticClusterName("/string/{**catchall}", "https://example.net")}", cluster.ClusterConfig.ClusterId); 285Assert.Equal(cluster.ClusterConfig.ClusterId, route.RouteConfig.ClusterId); 286Assert.Equal($"cluster_{YarpConfigurationBuilderHelpers.CreateSyntheticClusterName("/{**catchall}", "https://example.org")}", cluster.ClusterConfig.ClusterId);