Class ConsulClientFactory
A factory to use in configuring and creating a Consul client
Inheritance
System.Object
ConsulClientFactory
Namespace: Steeltoe.Discovery.Consul
Assembly: Steeltoe.Discovery.Consul.dll
Syntax
public static class ConsulClientFactory : object
Methods
| Edit this page View SourceCreateClient(ConsulOptions)
Create a Consul client using the provided configuration options
Declaration
public static IConsulClient CreateClient(ConsulOptions options)
Parameters
Type | Name | Description |
---|---|---|
ConsulOptions | options | the configuration options |
Returns
Type | Description |
---|---|
IConsulClient | a Consul client |