ServiceEndpointResolver.GetEndpointsAsync(String, CancellationToken) 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 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
Returns
The resolved service endpoints.