Compartilhar via


IServiceEndpointProvider.PopulateAsync Method

Definition

Resolves the endpoints for the service.

public System.Threading.Tasks.ValueTask PopulateAsync (Microsoft.Extensions.ServiceDiscovery.IServiceEndpointBuilder endpoints, System.Threading.CancellationToken cancellationToken);
abstract member PopulateAsync : Microsoft.Extensions.ServiceDiscovery.IServiceEndpointBuilder * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask
Public Function PopulateAsync (endpoints As IServiceEndpointBuilder, cancellationToken As CancellationToken) As ValueTask

Parameters

endpoints
IServiceEndpointBuilder

The endpoint collection, which resolved endpoints will be added to.

cancellationToken
CancellationToken

The token to monitor for cancellation requests.

Returns

The resolution status.

Applies to