Dela via


IAvailableDestinationsPolicy.GetAvailalableDestinations Method

Definition

Reviews all given destinations and returns the ones available for proxying requests to.

public System.Collections.Generic.IReadOnlyList<Yarp.ReverseProxy.Model.DestinationState> GetAvailalableDestinations (Yarp.ReverseProxy.Configuration.ClusterConfig config, System.Collections.Generic.IReadOnlyList<Yarp.ReverseProxy.Model.DestinationState> allDestinations);
abstract member GetAvailalableDestinations : Yarp.ReverseProxy.Configuration.ClusterConfig * System.Collections.Generic.IReadOnlyList<Yarp.ReverseProxy.Model.DestinationState> -> System.Collections.Generic.IReadOnlyList<Yarp.ReverseProxy.Model.DestinationState>
Public Function GetAvailalableDestinations (config As ClusterConfig, allDestinations As IReadOnlyList(Of DestinationState)) As IReadOnlyList(Of DestinationState)

Parameters

config
ClusterConfig

Target cluster.

allDestinations
IReadOnlyList<DestinationState>

All destinations configured for the target cluster.

Returns

Applies to