Class EurekaClientOptions
- Namespace
- Steeltoe.Discovery.Eureka.Configuration
- Assembly
- Steeltoe.Discovery.Eureka.dll
public sealed class EurekaClientOptions
- Inheritance
-
EurekaClientOptions
- Inherited Members
Properties
AccessTokenUri
Gets or sets the URL to obtain OAuth2 access token from, before connecting to the Eureka server.
public string? AccessTokenUri { get; set; }
Property Value
ClientId
Gets or sets the client ID for obtaining access token.
public string? ClientId { get; set; }
Property Value
ClientSecret
Gets or sets the secret for obtaining access token.
public string? ClientSecret { get; set; }
Property Value
Enabled
Gets or sets a value indicating whether to enable the Eureka client. Default value: true.
public bool Enabled { get; set; }
Property Value
EurekaServer
Gets Eureka server settings.
public EurekaServerOptions EurekaServer { get; }
Property Value
EurekaServerServiceUrls
Gets or sets a comma-separated list of Eureka server endpoints. Default value: http://localhost:8761/eureka/.
[ConfigurationKeyName("ServiceUrl")]
public string? EurekaServerServiceUrls { get; set; }
Property Value
Health
Gets Eureka health settings.
public EurekaHealthOptions Health { get; }
Property Value
IsFetchDeltaDisabled
Gets or sets a value indicating whether to fetch the full registry each time or fetch only deltas. Note that the delta fetches can reduce the traffic tremendously, because the rate of change in the Eureka server is normally much lower than the rate of fetches. Default value: false.
[ConfigurationKeyName("ShouldDisableDelta")]
public bool IsFetchDeltaDisabled { get; set; }
Property Value
RegistryFetchIntervalSeconds
Gets or sets how often (in seconds) to fetch registry information from the Eureka server. Default value: 30.
public int RegistryFetchIntervalSeconds { get; set; }
Property Value
RegistryRefreshSingleVipAddress
Gets or sets whether to only fetch registry information for the specified VIP address. Default value: false.
public string? RegistryRefreshSingleVipAddress { get; set; }
Property Value
ShouldFetchRegistry
Gets or sets a value indicating whether to periodically fetch registry information from the Eureka server. Default value: true.
public bool ShouldFetchRegistry { get; set; }
Property Value
ShouldFilterOnlyUpInstances
Gets or sets a value indicating whether to include only instances with UP status after fetching the list of applications. Default value: true.
public bool ShouldFilterOnlyUpInstances { get; set; }
Property Value
ShouldRegisterWithEureka
Gets or sets a value indicating whether to register the running app as a service instance. Default value: true.
public bool ShouldRegisterWithEureka { get; set; }
Property Value
ValidateCertificates
Gets or sets a value indicating whether the client validates server certificates. Default value: true.
[ConfigurationKeyName("Validate_Certificates")]
public bool ValidateCertificates { get; set; }