diff --git a/docs/docfx/articles/load-balancing.md b/docs/docfx/articles/load-balancing.md index 44bcac557..15d08a9ec 100644 --- a/docs/docfx/articles/load-balancing.md +++ b/docs/docfx/articles/load-balancing.md @@ -91,7 +91,7 @@ public sealed class LastLoadBalancingPolicy : ILoadBalancingPolicy { public string Name => "Last"; - public DestinationState PickDestination(HttpContext context, IReadOnlyList availableDestinations) + public DestinationState? PickDestination(HttpContext context, ClusterState cluster, IReadOnlyList availableDestinations) { return availableDestinations[^1]; } @@ -103,14 +103,3 @@ services.AddSingleton(); // Set the LoadBalancingPolicy on the cluster cluster.LoadBalancingPolicy = "Last"; ``` - -Other information that may be necessary to decide on a destination, such as cluster configuration, can be accessed from the `HttpContext`: - -```c# -public DestinationState PickDestination(HttpContext context, IReadOnlyList availableDestinations) -{ - var proxyFeature = context.GetReverseProxyFeature(); - var cluster = proxyFeature.Cluster; - // ... -} -```