Table of Contents

Class ConfigurationDiscoveryClientExtension

Namespace
Steeltoe.Discovery.Client.SimpleClients
Assembly
Steeltoe.Discovery.ClientBase.dll
public class ConfigurationDiscoveryClientExtension : IDiscoveryClientExtension
Inheritance
ConfigurationDiscoveryClientExtension
Implements
Inherited Members

Fields

CONFIG_PREFIX

public const string CONFIG_PREFIX = "discovery:services"

Field Value

string

Methods

ApplyServices(IServiceCollection)

Implementations of this method will add services required by the IDiscoveryClient to the service collection for activation later

public void ApplyServices(IServiceCollection services)

Parameters

services IServiceCollection

Microsoft.Extensions.DependencyInjection.IServiceCollection to configure

IsConfigured(IConfiguration, IServiceInfo)

Check if this client has been configured

public bool IsConfigured(IConfiguration configuration, IServiceInfo serviceInfo = null)

Parameters

configuration IConfiguration

Application Configuration to search

serviceInfo IServiceInfo

Service binding credentials

Returns

bool

Value indicating presence of expected configuration keys