IDiscoveryService.DiscoverServiceAsync(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.
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.