YarpClusterExtensions Methods
ClassMethods6 members
Provides extension methods for configuring a YARP cluster.
WithForwarderRequestConfig(YarpCluster, ForwarderRequestConfig)Section titled WithForwarderRequestConfig(YarpCluster, ForwarderRequestConfig)extensionYarpCluster Set the ForwarderRequestConfig for the cluster.
public static class YarpClusterExtensions{ public static YarpCluster WithForwarderRequestConfig( this YarpCluster cluster, ForwarderRequestConfig config) { // ... }}Parameters
clusterYarpClusterconfigForwarderRequestConfigRemarks
This overload is not available in polyglot app hosts. Use the DTO-based overload instead.
WithHealthCheckConfig(YarpCluster, HealthCheckConfig)Section titled WithHealthCheckConfig(YarpCluster, HealthCheckConfig)extensionYarpCluster Set the HealthCheckConfig for the cluster.
public static class YarpClusterExtensions{ public static YarpCluster WithHealthCheckConfig( this YarpCluster cluster, HealthCheckConfig config) { // ... }}Parameters
clusterYarpClusterconfigHealthCheckConfigRemarks
This overload is not available in polyglot app hosts. Use the DTO-based overload instead.
WithHttpClientConfig(YarpCluster, HttpClientConfig)Section titled WithHttpClientConfig(YarpCluster, HttpClientConfig)extensionYarpCluster Set the ForwarderRequestConfig for the cluster.
public static class YarpClusterExtensions{ public static YarpCluster WithHttpClientConfig( this YarpCluster cluster, HttpClientConfig config) { // ... }}Parameters
clusterYarpClusterconfigHttpClientConfigRemarks
This overload is not available in polyglot app hosts. Use the DTO-based overload instead.
WithLoadBalancingPolicy(YarpCluster, string)Section titled WithLoadBalancingPolicy(YarpCluster, string)extensionYarpCluster Set the LoadBalancingPolicy for the cluster.
public static class YarpClusterExtensions{ public static YarpCluster WithLoadBalancingPolicy( this YarpCluster cluster, string policy) { // ... }}Parameters
clusterYarpClusterpolicystringWithMetadata(YarpCluster, IReadOnlyDictionary<string, string>)Section titled WithMetadata(YarpCluster, IReadOnlyDictionary<string, string>)extensionYarpCluster Set the Metadata for the cluster.
public static class YarpClusterExtensions{ public static YarpCluster WithMetadata( this YarpCluster cluster, IReadOnlyDictionary<string, string> metadata) { // ... }}Parameters
clusterYarpClustermetadataIReadOnlyDictionary<string, string>WithSessionAffinityConfig(YarpCluster, SessionAffinityConfig)Section titled WithSessionAffinityConfig(YarpCluster, SessionAffinityConfig)extensionYarpCluster Set the SessionAffinityConfig for the cluster.
public static class YarpClusterExtensions{ public static YarpCluster WithSessionAffinityConfig( this YarpCluster cluster, SessionAffinityConfig config) { // ... }}Parameters
clusterYarpClusterconfigSessionAffinityConfigRemarks
This overload is not available in polyglot app hosts. Use the DTO-based overload instead.