Table of Contents

Interface IDiscoveryService

Namespace
Microsoft.ServiceHub.Framework
Assembly
Microsoft.ServiceHub.Framework.dll

Interface that all ServiceHub discovery services should implement.

public interface IDiscoveryService

Methods

DiscoverServiceAsync(string, CancellationToken)

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

Task<string> DiscoverServiceAsync(string serviceName, CancellationToken cancellationToken)

Parameters

serviceName string

The name of the service.

cancellationToken CancellationToken

A token to signal cancellation.

Returns

Task<string>

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