YarpClusterExtensions Methods
ClassMethods6 members
Provides extension methods for configuring a YARP cluster.
WithForwarderRequestConfig(YarpCluster, ForwarderRequestConfig) Section titled WithForwarderRequestConfig(YarpCluster, ForwarderRequestConfig)extensionYarp Set the ForwarderRequestConfig for the cluster.
public static class YarpClusterExtensions{ public static YarpCluster WithForwarderRequestConfig( this YarpCluster cluster, ForwarderRequestConfig config) { // ... }}Parameters
clusterYarpconfigForwarderRequestConfig Remarks
This overload is not available in polyglot AppHosts. Use the DTO-based overload instead.
WithHealthCheckConfig(YarpCluster, HealthCheckConfig) Section titled WithHealthCheckConfig(YarpCluster, HealthCheckConfig)extensionYarp Set the HealthCheckConfig for the cluster.
public static class YarpClusterExtensions{ public static YarpCluster WithHealthCheckConfig( this YarpCluster cluster, HealthCheckConfig config) { // ... }}Parameters
clusterYarpconfigHealthCheckConfig Remarks
This overload is not available in polyglot AppHosts. Use the DTO-based overload instead.
WithHttpClientConfig(YarpCluster, HttpClientConfig) Section titled WithHttpClientConfig(YarpCluster, HttpClientConfig)extensionYarp Set the ForwarderRequestConfig for the cluster.
public static class YarpClusterExtensions{ public static YarpCluster WithHttpClientConfig( this YarpCluster cluster, HttpClientConfig config) { // ... }}Parameters
clusterYarpconfigHttpClientConfig Remarks
This overload is not available in polyglot AppHosts. Use the DTO-based overload instead.
WithLoadBalancingPolicy(YarpCluster, string) Section titled WithLoadBalancingPolicy(YarpCluster, string)extensionYarp Set the LoadBalancingPolicy for the cluster.
public static class YarpClusterExtensions{ public static YarpCluster WithLoadBalancingPolicy( this YarpCluster cluster, string policy) { // ... }}Parameters
clusterYarppolicystringWithMetadata(YarpCluster, IReadOnlyDictionary<string, string>) Section titled WithMetadata(YarpCluster, IReadOnlyDictionary<string, string>)extensionYarp Set the Metadata for the cluster.
public static class YarpClusterExtensions{ public static YarpCluster WithMetadata( this YarpCluster cluster, IReadOnlyDictionary<string, string> metadata) { // ... }}Parameters
clusterYarpmetadataIReadOnlyDictionary<string, string> WithSessionAffinityConfig(YarpCluster, SessionAffinityConfig) Section titled WithSessionAffinityConfig(YarpCluster, SessionAffinityConfig)extensionYarp Set the SessionAffinityConfig for the cluster.
public static class YarpClusterExtensions{ public static YarpCluster WithSessionAffinityConfig( this YarpCluster cluster, SessionAffinityConfig config) { // ... }}Parameters
clusterYarpconfigSessionAffinityConfig Remarks
This overload is not available in polyglot AppHosts. Use the DTO-based overload instead.