IDiscoveryService.DiscoverServiceAsync(String, CancellationToken) Method

Definition

Find the location of the configuration file for the given service.

public System.Threading.Tasks.Task<string> DiscoverServiceAsync (string serviceName, System.Threading.CancellationToken cancellationToken);
abstract member DiscoverServiceAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function DiscoverServiceAsync (serviceName As String, cancellationToken As CancellationToken) As Task(Of String)

Parameters

serviceName
String

The name of the service.

cancellationToken
CancellationToken

A token to signal cancellation.

Returns

The full path to the service's configuration file or null if the service was not found.

Applies to