Class ConsulServiceInstance
A Consul service instance constructed from a ServiceEntry
public class ConsulServiceInstance : IServiceInstance
- Inheritance
-
ConsulServiceInstance
- Implements
- Inherited Members
Constructors
ConsulServiceInstance(ServiceEntry)
Initializes a new instance of the ConsulServiceInstance class.
public ConsulServiceInstance(ServiceEntry serviceEntry)
Parameters
serviceEntry
ServiceEntrythe service entry from the Consul server
Properties
Host
Gets the hostname of the registered ServiceInstance
public string Host { get; }
Property Value
IsSecure
Gets a value indicating whether if the port of the registered ServiceInstance is https or not
public bool IsSecure { get; }
Property Value
Metadata
Gets the key value pair metadata associated with the service instance
public IDictionary<string, string> Metadata { get; }
Property Value
Port
Gets the port of the registered ServiceInstance
public int Port { get; }
Property Value
ServiceId
Gets the service id as register by the DiscoveryClient
public string ServiceId { get; }
Property Value
Tags
public string[] Tags { get; }
Property Value
- string[]
Uri
Gets the service uri address
public Uri Uri { get; }