ServiceEndpointResolver.GetEndpointsAsync(String, CancellationToken) Method

Definition

Resolves and returns service endpoints for the specified service.

public System.Threading.Tasks.ValueTask<Microsoft.Extensions.ServiceDiscovery.ServiceEndpointSource> GetEndpointsAsync (string serviceName, System.Threading.CancellationToken cancellationToken);
member this.GetEndpointsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<Microsoft.Extensions.ServiceDiscovery.ServiceEndpointSource>
Public Function GetEndpointsAsync (serviceName As String, cancellationToken As CancellationToken) As ValueTask(Of ServiceEndpointSource)

Parameters

serviceName
String

The service name.

cancellationToken
CancellationToken

A CancellationToken.

Returns

The resolved service endpoints.

Applies to