Class GdidGenerator.AuthorityHost
Provides information about the host that runs GDID generation authority
Inheritance
System.Object
GdidGenerator.AuthorityHost
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Sky.Identification
Assembly: Azos.Sky.dll
Syntax
public sealed class AuthorityHost : INamed, IEquatable<GdidGenerator.AuthorityHost>
Constructors
AuthorityHost(IApplication, String, Int32)
Name of the host and distance from the caller. If distance =0 then it will be calculated using app chassis scope
Declaration
public AuthorityHost(IApplication app, string name, int distanceKm = 0)
Parameters
Type | Name | Description |
---|---|---|
IApplication | app | |
System.String | name | |
System.Int32 | distanceKm |
Properties
DistanceKm
Relative distance to the destination host from this machine
Declaration
public int DistanceKm { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Name
Host name
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Equals(GdidGenerator.AuthorityHost)
Declaration
public bool Equals(GdidGenerator.AuthorityHost other)
Parameters
Type | Name | Description |
---|---|---|
GdidGenerator.AuthorityHost | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
FromConfNode(IApplication, IConfigSectionNode)
Returns enumeration of Global Distributed ID generation Authorities. The distance is computed, and can not be specified in config
Declaration
public static IEnumerable<GdidGenerator.AuthorityHost> FromConfNode(IApplication app, IConfigSectionNode parentNode)
Parameters
Type | Name | Description |
---|---|---|
IApplication | app | |
IConfigSectionNode | parentNode |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<GdidGenerator.AuthorityHost> |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Implements
System.IEquatable<T>