Table of Contents

Class SerializableIServiceInstance

Namespace
Steeltoe.Common.Discovery
Assembly
Steeltoe.Common.dll
[Serializable]
public class SerializableIServiceInstance : IServiceInstance
Inheritance
SerializableIServiceInstance
Implements
Inherited Members

Constructors

SerializableIServiceInstance()

Initializes a new instance of the SerializableIServiceInstance class. For use with JsonSerializer

public SerializableIServiceInstance()

SerializableIServiceInstance(IServiceInstance)

public SerializableIServiceInstance(IServiceInstance instance)

Parameters

instance IServiceInstance

Properties

Host

Gets the hostname of the registered ServiceInstance

public string Host { get; set; }

Property Value

string

IsSecure

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

public bool IsSecure { get; set; }

Property Value

bool

Metadata

Gets the key value pair metadata associated with the service instance

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

Property Value

IDictionary<string, string>

Port

Gets the port of the registered ServiceInstance

public int Port { get; set; }

Property Value

int

ServiceId

Gets the service id as register by the DiscoveryClient

public string ServiceId { get; set; }

Property Value

string

Uri

Gets the service uri address

public Uri Uri { get; set; }

Property Value

Uri