Class ConfigServerClientOptions
- Namespace
- Steeltoe.Configuration.ConfigServer
- Assembly
- Steeltoe.Configuration.ConfigServer.dll
Holds settings used to configure the Spring Cloud Config Server provider.
public sealed class ConfigServerClientOptions
- Inheritance
-
ConfigServerClientOptions
- Inherited Members
Properties
AccessTokenUri
Gets or sets the address used by the provider to obtain a OAuth Access Token.
public string? AccessTokenUri { get; set; }
Property Value
ClientId
Gets or sets the client ID used by the provider to obtain a OAuth Access Token.
public string? ClientId { get; set; }
Property Value
ClientSecret
Gets or sets the client secret used by the provider to obtain a OAuth Access Token.
public string? ClientSecret { get; set; }
Property Value
DisableTokenRenewal
Gets or sets a value indicating whether periodic HashiCorp Vault token renewal should occur. Default value: false.
public bool DisableTokenRenewal { get; set; }
Property Value
Discovery
Gets service discovery settings.
public ConfigServerDiscoveryOptions Discovery { get; }
Property Value
Enabled
Gets or sets a value indicating whether the Config Server provider is enabled. Default value: true.
public bool Enabled { get; set; }
Property Value
Environment
Gets or sets a comma-separated list of environments used when accessing configuration data. Default value: "Production".
[ConfigurationKeyName("Env")]
public string? Environment { get; set; }
Property Value
FailFast
Gets or sets a value indicating whether fail-fast behavior is enabled. Default value: false.
public bool FailFast { get; set; }
Property Value
Headers
Gets headers that will be added to the Config Server request.
public IDictionary<string, string> Headers { get; }
Property Value
Health
Gets health check settings.
public ConfigServerHealthOptions Health { get; }
Property Value
Label
Gets or sets a comma-separated list of labels to request from the server.
public string? Label { get; set; }
Property Value
Name
Gets or sets the application name used when accessing configuration data.
public string? Name { get; set; }
Property Value
Password
Gets or sets the password used when accessing the Config Server.
public string? Password { get; set; }
Property Value
PollingInterval
Gets or sets the frequency with which app should check Config Server for changes in configuration.
public TimeSpan PollingInterval { get; set; }
Property Value
Retry
Gets retry settings.
public ConfigServerRetryOptions Retry { get; }
Property Value
Timeout
Gets or sets the request timeout (in milliseconds). Default value: 60_000 (1 minute).
public int Timeout { get; set; }
Property Value
Token
Gets or sets the HashiCorp Vault authentication token.
public string? Token { get; set; }
Property Value
TokenRenewRate
Gets or sets the Vault token renew rate (in milliseconds). Default value: 60_000 (1 minute).
public int TokenRenewRate { get; set; }
Property Value
TokenTtl
Gets or sets the HashiCorp Vault token time-to-live (in milliseconds). Default value: 300_000 (5 minutes).
public int TokenTtl { get; set; }
Property Value
Uri
Gets or sets a comma-separated list of Config Server addresses. Default value: "http://localhost:8888".
public string? Uri { get; set; }
Property Value
Username
Gets or sets the username used when accessing the Config Server.
public string? Username { get; set; }
Property Value
ValidateCertificates
Gets or sets a value indicating whether the provider validates server certificates. Default value: true.
public bool ValidateCertificates { get; set; }