Table of Contents

Class EurekaDiscoveryClient

Namespace
Steeltoe.Discovery.Eureka
Assembly
Steeltoe.Discovery.Eureka.dll
public class EurekaDiscoveryClient : DiscoveryClient, IEurekaClient, ILookupService, IDiscoveryClient, IServiceInstanceProvider
Inheritance
EurekaDiscoveryClient
Implements
Inherited Members

Constructors

EurekaDiscoveryClient(IOptionsMonitor<EurekaClientOptions>, IOptionsMonitor<EurekaInstanceOptions>, EurekaApplicationInfoManager, IEurekaHttpClient, ILoggerFactory, IHttpClientHandlerProvider, HttpClient)

public EurekaDiscoveryClient(IOptionsMonitor<EurekaClientOptions> clientConfig, IOptionsMonitor<EurekaInstanceOptions> instConfig, EurekaApplicationInfoManager appInfoManager, IEurekaHttpClient httpClient = null, ILoggerFactory logFactory = null, IHttpClientHandlerProvider handlerProvider = null, HttpClient netHttpClient = null)

Parameters

clientConfig IOptionsMonitor<EurekaClientOptions>
instConfig IOptionsMonitor<EurekaInstanceOptions>
appInfoManager EurekaApplicationInfoManager
httpClient IEurekaHttpClient
logFactory ILoggerFactory
handlerProvider IHttpClientHandlerProvider
netHttpClient HttpClient

Properties

ClientConfig

public override IEurekaClientConfig ClientConfig { get; }

Property Value

IEurekaClientConfig

Description

Gets a human readable description of the implementation

public string Description { get; }

Property Value

string

Services

Gets all known service Ids

public IList<string> Services { get; }

Property Value

IList<string>

Methods

EnsureAssemblyIsLoaded()

Use this method to prevent Steeltoe.Discovery.Eureka from being optimized out of the build

public static void EnsureAssemblyIsLoaded()

GetInstances(string)

Get all ServiceInstances associated with a particular serviceId

public IList<IServiceInstance> GetInstances(string serviceId)

Parameters

serviceId string

the serviceId to lookup

Returns

IList<IServiceInstance>

List of service instances

GetLocalServiceInstance()

ServiceInstance with information used to register the local service

public IServiceInstance GetLocalServiceInstance()

Returns

IServiceInstance

The IServiceInstance

GetServices()

public IList<string> GetServices()

Returns

IList<string>

ShutdownAsync()

public override Task ShutdownAsync()

Returns

Task