Interface IDestinationResolver
Resolves destination addresses.
Namespace: Yarp.ReverseProxy.ServiceDiscovery
Assembly: Yarp.ReverseProxy.dll
Syntax
public interface IDestinationResolver
Methods
| Improve this Doc View SourceResolveDestinationsAsync(IReadOnlyDictionary<String, DestinationConfig>, CancellationToken)
Resolves the provided destinations and returns resolved destinations.
Declaration
ValueTask<ResolvedDestinationCollection> ResolveDestinationsAsync(IReadOnlyDictionary<string, DestinationConfig> destinations, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyDictionary<System.String, DestinationConfig> | destinations | The destinations to resolve. |
CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
ValueTask<ResolvedDestinationCollection> | The resolved destinations and a change token used to indicate when resolution should be performed again. |