IDestinationResolver.ResolveDestinationsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Resolves the provided destinations and returns resolved destinations.
public System.Threading.Tasks.ValueTask<Yarp.ReverseProxy.ServiceDiscovery.ResolvedDestinationCollection> ResolveDestinationsAsync(System.Collections.Generic.IReadOnlyDictionary<string,Yarp.ReverseProxy.Configuration.DestinationConfig> destinations, System.Threading.CancellationToken cancellationToken);
abstract member ResolveDestinationsAsync : System.Collections.Generic.IReadOnlyDictionary<string, Yarp.ReverseProxy.Configuration.DestinationConfig> * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Yarp.ReverseProxy.ServiceDiscovery.ResolvedDestinationCollection>
Public Function ResolveDestinationsAsync (destinations As IReadOnlyDictionary(Of String, DestinationConfig), cancellationToken As CancellationToken) As ValueTask(Of ResolvedDestinationCollection)
Parameters
- destinations
- IReadOnlyDictionary<String,DestinationConfig>
The destinations to resolve.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
The resolved destinations and a change token used to indicate when resolution should be performed again.