9 instantiations of YarpCluster
Aspire.Hosting.Yarp (2)
ConfigurationBuilder\YarpConfigurationBuilder.cs (2)
32
var destination = new
YarpCluster
(endpoint);
41
var destination = new
YarpCluster
(resource.Resource);
Aspire.Hosting.Yarp.Tests (7)
YarpClusterTests.cs (7)
22
var httpCluster = new
YarpCluster
(httpEndpoint);
26
var httpsCluster = new
YarpCluster
(httpsEndpoint);
42
var httpCluster = new
YarpCluster
(httpEndpoint);
46
var httpsCluster = new
YarpCluster
(httpsEndpoint);
60
var httpCluster = new
YarpCluster
(httpService.Resource);
68
var httpsCluster = new
YarpCluster
(httpsService.Resource);
81
var clusterA = new
YarpCluster
(serviceA.Resource);
33 references to YarpCluster
Aspire.Hosting.Yarp (26)
ConfigurationBuilder\IYarpConfigurationBuilder.cs (6)
20
public YarpRoute AddRoute(string path,
YarpCluster
cluster);
27
public
YarpCluster
AddCluster(EndpointReference endpoint);
34
public
YarpCluster
AddCluster(IResourceBuilder<IResourceWithServiceDiscovery> resource);
50
public static YarpRoute AddRoute(this IYarpConfigurationBuilder builder,
YarpCluster
cluster)
86
var
cluster = builder.AddCluster(endpoint);
99
var
cluster = builder.AddCluster(resource);
ConfigurationBuilder\YarpCluster.cs (12)
79
public static
YarpCluster
WithForwarderRequestConfig(this
YarpCluster
cluster, ForwarderRequestConfig config)
88
public static
YarpCluster
WithHttpClientConfig(this
YarpCluster
cluster, HttpClientConfig config)
97
public static
YarpCluster
WithSessionAffinityConfig(this
YarpCluster
cluster, SessionAffinityConfig config)
106
public static
YarpCluster
WithHealthCheckConfig(this
YarpCluster
cluster, HealthCheckConfig config)
115
public static
YarpCluster
WithLoadBalancingPolicy(this
YarpCluster
cluster, string policy)
124
public static
YarpCluster
WithMetadata(this
YarpCluster
cluster, IReadOnlyDictionary<string, string> metadata)
ConfigurationBuilder\YarpConfigurationBuilder.cs (6)
13
internal List<
YarpCluster
> Clusters { get; } = new();
18
public YarpRoute AddRoute(string path,
YarpCluster
cluster)
30
public
YarpCluster
AddCluster(EndpointReference endpoint)
32
var
destination = new YarpCluster(endpoint);
39
public
YarpCluster
AddCluster(IResourceBuilder<IResourceWithServiceDiscovery> resource)
41
var
destination = new YarpCluster(resource.Resource);
ConfigurationBuilder\YarpRoute.cs (1)
11
public class YarpRoute(
YarpCluster
cluster)
YarpResourceExtensions.cs (1)
61
foreach (
var
destination in configBuilder.Clusters)
Aspire.Hosting.Yarp.Tests (7)
YarpClusterTests.cs (7)
22
var
httpCluster = new YarpCluster(httpEndpoint);
26
var
httpsCluster = new YarpCluster(httpsEndpoint);
42
var
httpCluster = new YarpCluster(httpEndpoint);
46
var
httpsCluster = new YarpCluster(httpsEndpoint);
60
var
httpCluster = new YarpCluster(httpService.Resource);
68
var
httpsCluster = new YarpCluster(httpsService.Resource);
81
var
clusterA = new YarpCluster(serviceA.Resource);