MillisecondIdGenerator

Ecng.Common

Identifier generator based on milliseconds. Each subsequent call to GetNextId returns the number of milliseconds elapsed since the instance was created.

Herda de: IdGenerator

Construtores

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.

Retorna: The number of milliseconds elapsed.