Class GdidAuthorityService
Generates Global Distributed IDs - singleton, only one instance of this service may be allocated per process
Inheritance
System.Object
GdidAuthorityService
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
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 GdidAuthorityService : GdidAuthorityServiceBase, IDisposable, IDaemon, IDaemonView, IApplicationComponent, INamed, IConfigurable, ILocalizedTimeProvider, IGdidAuthority, ISkyService
Constructors
GdidAuthorityService(IApplication)
Creates a singleton instance or throws if instance is already created
Declaration
public GdidAuthorityService(IApplication app)
Parameters
Type | Name | Description |
---|---|---|
IApplication | app |
Properties
AuthorityIDs
Declaration
[Config("$authority-ids")]
public byte[] AuthorityIDs { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
ComponentCommonName
Declaration
public override string ComponentCommonName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
AllocateBlock(String, String, Int32, Nullable<UInt64>)
Performs block allocation
Declaration
public GdidBlock AllocateBlock(string scopeName, string sequenceName, int blockSize, ulong? vicinity)
Parameters
Type | Name | Description |
---|---|---|
System.String | scopeName | |
System.String | sequenceName | |
System.Int32 | blockSize | |
System.Nullable<System.UInt64> | vicinity |
Returns
Type | Description |
---|---|
GdidBlock |
Destructor()
Declaration
protected override void Destructor()
Overrides
DoStart()
Declaration
protected override void DoStart()
Overrides
Implements
System.IDisposable