IDestinationResolver.ResolveDestinationsAsync Method

Definition

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.

Applies to