Skip to content
Docs Try Aspire

YarpCluster

Handle
📦 Aspire.Hosting.Yarp v13.2.0
interface YarpCluster {
withForwarderRequestConfig(config: YarpForwarderRequestConfig): YarpCluster;
withHealthCheckConfig(config: YarpHealthCheckConfig): YarpCluster;
withHttpClientConfig(config: YarpHttpClientConfig): YarpCluster;
withLoadBalancingPolicy(policy: string): YarpCluster;
withMetadata(metadata: Dict<string,string>): YarpCluster;
withSessionAffinityConfig(config: YarpSessionAffinityConfig): YarpCluster;
}

Methods

Sets the forwarder request configuration for the cluster.
withForwarderRequestConfig(config: YarpForwarderRequestConfig): YarpCluster
config YarpForwarderRequestConfig
YarpCluster
Sets the health check configuration for the cluster.
withHealthCheckConfig(config: YarpHealthCheckConfig): YarpCluster
config YarpHealthCheckConfig
YarpCluster
Sets the HTTP client configuration for the cluster.
withHttpClientConfig(config: YarpHttpClientConfig): YarpCluster
config YarpHttpClientConfig
YarpCluster
Sets the load balancing policy for the cluster.
withLoadBalancingPolicy(policy: string): YarpCluster
policy string
YarpCluster
method withMetadata
Sets metadata for the cluster.
withMetadata(metadata: Dict<string,string>): YarpCluster
metadata Dict<string,string>
YarpCluster
Sets the session affinity configuration for the cluster.
withSessionAffinityConfig(config: YarpSessionAffinityConfig): YarpCluster
config YarpSessionAffinityConfig
YarpCluster