Table of Contents

Class ThisServiceInstance

Namespace
Steeltoe.Discovery.Eureka
Assembly
Steeltoe.Discovery.Eureka.dll
public class ThisServiceInstance : IServiceInstance
Inheritance
ThisServiceInstance
Implements
Inherited Members

Constructors

ThisServiceInstance(IOptionsMonitor<EurekaInstanceOptions>)

public ThisServiceInstance(IOptionsMonitor<EurekaInstanceOptions> instConfig)

Parameters

instConfig IOptionsMonitor<EurekaInstanceOptions>

Properties

Host

Gets the hostname of the registered ServiceInstance

public string Host { get; }

Property Value

string

IsSecure

Gets a value indicating whether if the port of the registered ServiceInstance is https or not

public bool IsSecure { get; }

Property Value

bool

Metadata

Gets the key value pair metadata associated with the service instance

public IDictionary<string, string> Metadata { get; }

Property Value

IDictionary<string, string>

Port

Gets the port of the registered ServiceInstance

public int Port { get; }

Property Value

int

SecurePort

public int SecurePort { get; }

Property Value

int

ServiceId

Gets the service id as register by the DiscoveryClient

public string ServiceId { get; }

Property Value

string

Uri

Gets the service uri address

public Uri Uri { get; }

Property Value

Uri

Methods

GetHost()

public string GetHost()

Returns

string