Table of Contents

Class ConfigurationServiceInstance

Namespace
Steeltoe.Discovery.Configuration
Assembly
Steeltoe.Discovery.Configuration.dll

Represents an IServiceInstance inside ConfigurationDiscoveryOptions that was loaded from app configuration.

public sealed class ConfigurationServiceInstance : IServiceInstance
Inheritance
ConfigurationServiceInstance
Implements
Inherited Members

Properties

Host

Gets the hostname of the registered service instance.

[Required]
public string? Host { get; set; }

Property Value

string

InstanceId

Gets the instance ID as registered by the discovery client.

public string InstanceId { get; }

Property Value

string

IsSecure

Gets a value indicating whether the scheme of the registered service instance is https.

public bool IsSecure { get; set; }

Property Value

bool

Metadata

Gets the key/value metadata associated with this service instance.

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

Property Value

IDictionary<string, string>

NonSecureUri

Gets the HTTP-based resolved address of the registered service instance, if available.

public Uri? NonSecureUri { get; }

Property Value

Uri

Port

Gets the port of the registered service instance.

public int Port { get; set; }

Property Value

int

SecureUri

Gets the HTTPS-based resolved address of the registered service instance, if available.

public Uri? SecureUri { get; }

Property Value

Uri

ServiceId

Gets the service ID as registered by the discovery client.

[Required]
public string? ServiceId { get; set; }

Property Value

string

Uri

Gets the resolved address of the registered service instance.

public Uri Uri { get; }

Property Value

Uri