Skip to content

Class ConsulDependencyDefinition

Namespace: Cephalon.Observability.ConsulDependencies.Configuration
Assembly: Cephalon.Observability.ConsulDependencies.dll

Describes one Consul dependency that should contribute to runtime health.

public sealed class ConsulDependencyDefinition : DependencyDefinitionBase

objectDependencyDefinitionBaseConsulDependencyDefinition

DependencyDefinitionBase.Id, DependencyDefinitionBase.DisplayName, DependencyDefinitionBase.Required, DependencyDefinitionBase.TimeoutSeconds, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Initializes a new instance of the class.

public ConsulDependencyDefinition()

Gets or sets the optional Consul ACL token sent as the X-Consul-Token header.

public string? AclToken { get; set; }

string?

Gets or sets the optional Consul datacenter name added as the dc query parameter.

public string? Datacenter { get; set; }

string?

Gets or sets the absolute Consul base URL or status endpoint that should be probed.

public string Endpoint { get; set; }

string