Class ConfigurationDiscoveryClientBuilderExtensions
Inheritance
System.Object
ConfigurationDiscoveryClientBuilderExtensions
Namespace: Steeltoe.Discovery.Client.SimpleClients
Assembly: Steeltoe.Discovery.ClientBase.dll
Syntax
public static class ConfigurationDiscoveryClientBuilderExtensions : object
Methods
| Edit this page View SourceUseConfiguredInstances(DiscoveryClientBuilder)
Allows the use of IDiscoveryClient model built from IConfiguration instead of a hosted service registry
Declaration
public static DiscoveryClientBuilder UseConfiguredInstances(this DiscoveryClientBuilder clientBuilder)
Parameters
Type | Name | Description |
---|---|---|
DiscoveryClientBuilder | clientBuilder | this |
Returns
Type | Description |
---|---|
DiscoveryClientBuilder |
Remarks
Build your list of service instances under the configuration prefix discovery:services
For example: "discovery": { "services": [ { "serviceId": "CartService", "host": "knownhost1", "port": 443, "isSecure": true }, { "serviceId": "CartService", "host": "knownhost2", "port": 443, "isSecure": true }, ] }