Interface IAvailableDestinationsPolicy
Policy evaluating which destinations should be available for proxying requests to.
Namespace: Yarp.ReverseProxy.Health
Assembly: Yarp.ReverseProxy.dll
Syntax
public interface IAvailableDestinationsPolicy
Properties
| Improve this Doc View SourceName
Policy name.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetAvailalableDestinations(ClusterConfig, IReadOnlyList<DestinationState>)
Reviews all given destinations and returns the ones available for proxying requests to.
Declaration
IReadOnlyList<DestinationState> GetAvailalableDestinations(ClusterConfig config, IReadOnlyList<DestinationState> allDestinations)
Parameters
Type | Name | Description |
---|---|---|
ClusterConfig | config | Target cluster. |
IReadOnlyList<DestinationState> | allDestinations | All destinations configured for the target cluster. |
Returns
Type | Description |
---|---|
IReadOnlyList<DestinationState> |