MillisecondIdGenerator
Ecng.Common
Identifier generator based on milliseconds. Each subsequent call to GetNextId returns the number of milliseconds elapsed since the instance was created.
Hereda de: IdGenerator
Constructores
MillisecondIdGenerator
public MillisecondIdGenerator()
millisecondIdGenerator = MillisecondIdGenerator()
Initializes a new instance of the MillisecondIdGenerator class.
Métodos
GetNextId
public override long GetNextId()
result = millisecondIdGenerator.GetNextId()
Gets the next identifier representing the number of milliseconds elapsed since the object was created.
Devuelve: The number of milliseconds elapsed.